Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui orientation failed after change orientation popup

extension View {
    func phoneOnlyStackNavigationView() -> some View {
        if UIDevice.current.userInterfaceIdiom == .phone {
            return AnyView(self.navigationViewStyle(StackNavigationViewStyle()))
        } else {
            return AnyView(self)
        }
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swiftui #orientation #failed #change #orientation #popup
ADD COMMENT
Topic
Name
5+4 =