Post

Replies

Boosts

Views

Activity

Reply to iOS 16 crash on dismiss sheet with navigationView
I've found a workaround which can prevent this crash from happening. if #available(iOS 16.0, *) {             let keyWindow = UIApplication.shared.connectedScenes               .filter { $0.activationState == .foregroundActive }               .first(where: { $0 is UIWindowScene })               .flatMap { $0 as? UIWindowScene }?.windows               .first(where: \.isKeyWindow)             if let window = keyWindow {               window.rootViewController?.presentedViewController?.dismiss(animated: true)             } } Using UIKit to dismiss the model seem to work fine and won't trigger the crash. But this is not ideal and I don't know when this can get fixed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Reply to iOS 16 crash on dismiss sheet with navigationView
I've found a workaround which can prevent this crash from happening. if #available(iOS 16.0, *) {             let keyWindow = UIApplication.shared.connectedScenes               .filter { $0.activationState == .foregroundActive }               .first(where: { $0 is UIWindowScene })               .flatMap { $0 as? UIWindowScene }?.windows               .first(where: \.isKeyWindow)             if let window = keyWindow {               window.rootViewController?.presentedViewController?.dismiss(animated: true)             } } Using UIKit to dismiss the model seem to work fine and won't trigger the crash. But this is not ideal and I don't know when this can get fixed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to iOS 16 crash on dismiss sheet with navigationView
I've also set the navigationViewStyle to be StackNavigationViewStyle()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to iOS 16 crash on dismiss sheet with navigationView
Also this only happening on device. When running on simulator it is all fine
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to TestFlight Crash
This is the same issue as state here https://developer.apple.com/forums/thread/696197 Try update to Xcode 13.2RC it should solve your issue
Replies
Boosts
Views
Activity
Dec ’21