Custom List Section Spacing
Sets the spacing between adjacent sections in a List to a custom value.
Platform Compatibility
Tags
SwiftUI Code
List {
Section("Header") {
Text("Foo")
}
Section("Header") {
Text("Bar")
}
.listSectionSpacing(42)
Section("Header") {
Text("Foo")
}
}