InsetGroupedListStyle
The list style that describes the behavior and appearance of an inset grouped list.
Platform Compatibility
iOS 14.0+ iPadOS 14.0+ visionOS 1.0+
Tags
SwiftUI Code
List {
Section {
Toggle("Toggle", isOn: .constant(true))
TextField("TextField", text: .constant(""))
Button("Button", action: action)
Picker("Picker", selection: .constant(0)) {
Text("Option 1").tag(0)
}
}
Text("Foo")
Section {
Text("Bar1")
Text("Bar2")
} header: {
Text("Header")
} footer: {
Text("Footer")
}
}
.listStyle(.plain)
Found an issue or have a suggestion?
Created: August 6, 2025Updated: August 6, 2025