Post

Replies

Boosts

Views

Activity

Reply to Request authorization for the notification center crash iOS app on Swift 6
FWIW, I was experiencing the same phenomenon (crashes related to multi threading issues) in a few other places: LAContext.evaluatePolicy(_:localizedReason:reply:) UNUserNotificationCenter.getNotificationSettings(completionHandler:) UNUserNotificationCenter.add(_:withCompletionHandler:) In all of these cases, the workaround suggested by Quinn did the trick of avoiding the crash. Best Regards, Viktor
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’24
Reply to ScrollViewReader's scrollTo may be broken on iOS 15
I think I encountered the same issue today using Xcode 13.3 and iOS 15.4, and from what I can see the issue still persists. The following code reproduces the problem I'm having: struct ContentView: View { var body: some View { ScrollViewReader { proxy in ScrollView { Spacer(minLength: 300) Button("Scroll to #50") { proxy.scrollTo(50, anchor: .center) } VStack(spacing: 0) { ForEach(0..<100) { i in Text("\(i)") .frame(height: 100) .id(i) .frame(maxWidth: .infinity) } } } } } } I submitted a feedback to Apple using the above code sample: FB9959257.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22