I want to set the View Background color to green. I have a List View and it's fine but the underlying view needs to be green--see image. I know I'm missing something but with SwiftUI you sometimes don't know if it's a bug or just how the thing is supposed to work. Any ideas that have worked for others I would appreciate. I have attached my code and I am on Xcode Version 11.5 (11E608c).
Here is the code:
var body: some View {
ZStack() {
Color(red: 95.0/255.0, green: 122.0/255.0, blue: 128.0/255)
.edgesIgnoringSafeArea(.all)
Text("")
List {
Group {
Text("Price: ")
Text("Down: ")
Text("APR: ")
Text("Term: ")
Text("Tax: ")
Text("Rebate: ")
}.listRowBackground(Color(red: 95.0/255.0, green: 122.0/255.0, blue: 128.0/255))
Group {
Text("Add On: ")
Text("Fees: ")
Text("Trade Value: ")
Text("Total Interest: ")
Text("Payment: ")
}.listRowBackground(Color(red: 95.0/255.0, green: 122.0/255.0, blue: 128.0/255))
}
}
}