Post

Replies

Boosts

Views

Activity

Opacity of DisclosureGroup arrow in iOS 17
Prior to iOS 16, DisclosureGroup arrow was opaque. However, in iOS 17, the following code makes the arrow translucent: DisclosureGroup { Text("Title") } label: { Text("Label") } When DisclosureGroup is in List, it is opaque, as in iOS 16: List { DisclosureGroup { Text("Title") } label: { Text("Label") } } Is this expected behavior? And is there a way to change the opacity of arrows without a custom style in iOS 17?
4
1
1.1k
Oct ’23
Xcode 15 beta: unable to load standard library for target 'arm64-apple-ios17.0-simulator'
In Xcode 14, Swift Package libraries can be built with the following command: swift build -v -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios12.3-simulator" But in Xcode 15 beta 5, I'm encountering an error: <unknown>:0: error: unable to load standard library for target 'x86_64-apple-ios12.3-simulator' The error persists even when I change the OS version (such as to ios17.0) or change the architecture to arm64. Has there been a change to the behavior of the swift command in Xcode 15 that I should be aware of?
2
0
2.1k
Sep ’23
Number of text and images in accessoryInline widget
Only one image and one Text will be displayed even if described as follows: HStack {   Text("1")   Image(systemName: "swift")   Text("2")   Image(systemName: "swift") } However, a similar layout is possible by describing it this way: Text("1 \(Image(systemName: "swift")) 2 \(Image(systemName: "swift"))") Is this behavior correct? Environment: Xcode 14 beta 5, iOS 16 beta 6
0
0
930
Aug ’22
ScrollViewReader's scrollTo may be broken on iOS 15
ScrollViewReader's scrollTo scrolls too much in iOS 15. I had no problem with iOS 14. This is the code: import SwiftUI struct ContentView: View {   var body: some View {     ScrollViewReader { proxy in       ScrollView {         VStack {           Color.yellow             .frame(height: 800)           ScrollButton(proxy: proxy)         }       }     }   } } struct ScrollButton: View {   let proxy: ScrollViewProxy   @Namespace var bottomId   var body: some View {     VStack {       Button("Scroll") {         withAnimation {           proxy.scrollTo(bottomId)         }       }       Color.red         .frame(height: 500)         .id(bottomId)     }   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView()   } }
30
2
19k
Aug ’22
canOpenURL returns false when I changed the default browser on iOS 14
I used canOpenURL like this: UIApplication.shared.canOpenURL(URL(string: "https://developer.apple.com/")!) It was true when I set Safari as a default browser. But I changed it to the other browsers like Chrome and Edge, then it was false. Adding https & http into LSApplicationQueriesSchemes, it was the result I had hoped for. Is this a bug or a correct behavior for iOS 14? (iOS 14 Beta 8)
10
0
12k
Sep ’21