Apple Watch SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive Apple Watch previews, Swift code, and Apple documentation.
30elements
List
CarouselListStyle
The carousel list style.
Explore CarouselListStyle 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(.carousel)Compatibility
watchOS 6.0+
Tags
Found an issue or have a suggestion?
All variants
Every available Apple Watch screenshot for CarouselListStyle.