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
Xcode 11.5
Simply use ZStack to add background color or images to your main view in SwiftUI
struct ContentView: View { var body: some View { ZStack { Color.black } .edgesIgnoringSafeArea(.vertical) } }