I'm trying to change background color of the NavigationView (not navigation bar) using this code:
NavigationView {
Text("Text")
}
.background(Color.clear)
But it doesn't work. Also, I tried to change UIView appearance:
UIView.appearance().backgroundColor = UIColor.black
But it doesn't work too.
The actual result is presented below:
The desired result is:
Does anyone know how to do this?