Post

Replies

Boosts

Views

Activity

Reply to TabView - PageTabViewStyle does not conform to edgesIgnoreSafeArea in Landscape mode on all notched iPhones
Same here, new iOS14's PageTabViewStyle() does not work in Landscape, as for: the fact that rotating an iPhone to Landscape will not keep the current page (but unfortunately, it always jumps to index=0). Rotation should keep the current index and rotate arround that page. the fact that the .ignoreSafeArea() does not work the fact that NavigationBar is not hidden even tough explicitely told so.... Hope this will be fixed soon in a next version of iOS.
Mar ’21
Reply to Why tabView jumps one view back on orientation change?
Same here - in my case it is even more than one Tab jump that the rotation to landscape or back to portrait causes. Coud it be because the TabView-frame is much wider than tall ? But shouldn't the TabView rotation take care of this. My rotation is made as follows: Swift struct DeviceRotationViewModifier: ViewModifier {       let action: (UIDeviceOrientation) - Void   func body(content: Content) - some View {     content       .onAppear()       .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in         action(UIDevice.current.orientation)       }   } } Swift extension View {       func onRotate(perform action: @escaping (UIDeviceOrientation) - Void) - some View {     self.modifier(DeviceRotationViewModifier(action: action))   } } And finally, where I rotate my TabView: Swift TabView(selection: self.$selectedTab) { ... }   .tabViewStyle(PageTabViewStyle())     .onRotate { _ in       print(selectedTab)     } Any solution to this problem is highly appreciated, thank you.
Mar ’21