I\'m beginning to try out SwiftUI and I\'m surprised that it doesn\'t seem to be straightforward to change the background color of a View. How do y
SwiftUI
View
You can Simply Change Background Color of a View:
var body : some View{ VStack{ Color.blue.edgesIgnoringSafeArea(.all) } }
and You can also use ZStack :
var body : some View{ ZStack{ Color.blue.edgesIgnoringSafeArea(.all) } }