使用ListSwiftUI中的简单控件,如何更改/删除节标题的标准背景颜色
struct ContentView : View {
var body: some View {
List {
ForEach(0...3) { section in
Section(header: Text("Section")) {
ForEach(0...3) { row in
Text("Row")
}
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
swiftui ×1