I'm trying to set background color of a screen with NavigationView to be of the same color (light gray). My aim is to have the background color of every screen and navigation view background to be the same (gray) globally. How would I archive it? I've tried this:
var body: some View {
NavigationView {
ZStack {
Color.gray.opacity(0.1)
VStack{
Spacer()
}
}.navigationTitle("Today")
.navigationBarItems(leading: Text("some texts"))
}
}