Apple Watch SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive Apple Watch previews, Swift code, and Apple documentation.
30elements
List
EllipticalListStyle
The list style that describes the behavior and appearance of an elliptical list.
Explore EllipticalListStyle on Apple Watch, with SwiftUI code and Apple API documentation.
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(.elliptical)Compatibility
watchOS 7.0+
Tags
Found an issue or have a suggestion?
All variants
Every available Apple Watch screenshot for EllipticalListStyle.