Hello. I have Navigation View with a List and 2 cells like this:
NavigationView {
List{
NavigationLink(destination: TabScene()) {
// Cella 1
HStack {
Image(title[0].icon)
Text(title[0].title).font(.system(size: 30))
}
}
// Cella 2
HStack {
Image(title[1].icon)
Text(title[1].title).font(.system(size: 30))
} // Con la tap sulla cella si attiva la State var a true
.onTapGesture {
self.showTabView.toggle()
} // Quando la state var va a true si presenta la scena desiderata.
.sheet(isPresented: $showTabView, content: {
CreditsView()
})
}
.navigationBarTitle("ARPlanets 2")
.navigationViewStyle(DefaultNavigationViewStyle())
.listStyle(GroupedListStyle())
}
Currently the background is white and it becomes black with the dark mode. Anyway i want to choose a custom background Color for my app.
How can i do that? So far i could not set a background Color for the Navigation View with a List embed inside it.