Open Alex-Vaiman opened 6 months ago
I mean the orange screen, it is not possible without this fix.
Hello Alex!
I have achieved the result you wanted by ignoring the safe area in CustomTabView
and in the content of the first tab:
var body: some View {
CustomTabView(tabBarView: tabBarView, tabs: Tab.allCases, selection: selectedTab) {
NavigationView {
ZStack {
Color.orange
Text("Profile")
}
.edgesIgnoringSafeArea(.all) // <--- Here
.navigationBarTitle("Profile")
}
// Other tabs
}
.edgesIgnoringSafeArea(.vertical) // <--- Here
}
Let me know if that works for you as well.
Grate project! I found a small issue, all tabs screens are in safe area, and I cannot change this, for example the back ground color of the status bar in every screen. I am afraid the fix is going to be dangerous for current users?
if you add the .ignoresSafeArea(.container), the issue solved, but the we have 2 problems. 1 It supported since ios13, mac 11. 2 the other thing, depending on the setup, it may? brake thing for current users.