With a simple List in SwiftUI, how do I change/remove the standard background color for the section header
List
struct ContentView : View { var body:
Another way you can do it by setting the frame of the header:
VStack { List { ForEach(0...3) { section in Section(header: Text("Section") .frame(minWidth: 0, maxWidth: .infinity,alignment:.leading) .background(Color.blue.relativeWidth(2)) ) { ForEach(0...3) { row in Text("Row") } } } } }