Joel Denke
05/26/2023, 12:25 PMNavigationView {
MainScreen()
.navigationViewStyle(StackNavigationViewStyle())
.edgesIgnoringSafeArea(.all)
}
Is it possible to propagate the insets back to compose somehow? In this case top and bottom nav bar from NavigationView.Dima Avdeev
05/26/2023, 12:27 PMJoel Denke
05/26/2023, 12:29 PMJoel Denke
05/26/2023, 12:33 PMMainScreen()
.environment(EnvironmentValues.safeAreaInsets, UIApplication.shared.windows.first?.safeAreaInsets)
But not sure how to apply it to be honest in Swift 😄Dima Avdeev
05/26/2023, 12:34 PMDima Avdeev
05/26/2023, 12:34 PMJoel Denke
05/26/2023, 12:39 PMNavigationView {
MainScreen()
.navigationViewStyle(StackNavigationViewStyle())
.navigationBarHidden(true)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.edgesIgnoringSafeArea([.top, .bottom])
}
Joel Denke
05/26/2023, 12:46 PMNavigationView {
MainScreen()
.navigationViewStyle(StackNavigationViewStyle())
} .frame(maxWidth: .infinity, maxHeight: .infinity)
.edgesIgnoringSafeArea([.top, .bottom])
.ignoresSafeArea(.container, edges: .top)
.ignoresSafeArea(.container, edges: .bottom)
Needed to apply it on NavigationView, not the content inside it 😄Joel Denke
05/26/2023, 12:47 PM