I'd like to override the default dark mode color in an app i'm prototyping but I haven't been able to change the color of the notch when I'm using a tab view. It works fine when I use a navigation view without a TabView with the following code:
NavigationView {
ZStack {
Color(.gray).edgesIgnoringSafeArea(.all)
VStack {
Text("Test")
}
}.navigationBarTitle("Nav bar")
}
This yields the following:
However, as soon as I embed it in a TabView, the following happens:
I can see that this is because of a hosting view controller which has a black background color, however I can't find a way to change this color. This is what it looks like in the view debugger:
Anyone know if there is a way to change the color of this? There must be a way to override the default dark mode color. Perhaps I'm going about it the wrong way?