Post

Replies

Boosts

Views

Activity

Reply to Xcode 13.2.1: Crash about swift::Demangle/ResolveAsSymbolicReference when use SwiftUI if-available
Hello; maybe I found a solution to this problem before this code crashed on iOS 14 when I used dismissDisable() extension View { @ViewBuilder func dismissDisable() -> some View { if #available(iOS 15.0, *) { self.interactiveDismissDisabled() } else { self } } } I changed this code by : @available(iOS 15.0, *) struct DismissDisableModifier: ViewModifier { func body(content: Content) -> some View { content.interactiveDismissDisabled() } } extension View { @ViewBuilder func dismissDisable() -> some View { if #available(iOS 15.0, *) { self.modifier(DismissDisableModifier()) } else { self } } } And seems to pass on iOS14 !
Jan ’22