List Section Margins
Set the section margins for the specific edges.
Platform Compatibility
Tags
SwiftUI Code
List {
Section("Header") {
Text("Foo")
}
.listSectionMargins(.horizontal, 0)
Section {
Text("Bar")
} header: {
Text("Header")
}
}