I'm trying to set a List's background color; but it remains gray.
var body: some View {
List {
ForEach(...) {
Section() {
Text("not the actual code")
}
}
}
.listStyle(InsetGroupedListStyle())
.background(Color.red)
}
.listRowBackground(Color.green)
works for the row, but not the table's background color