WheelPickerStyle
A picker style that presents the options in a scrollable wheel that shows the selected option and a few neighboring options.
Platform Compatibility
Tags
SwiftUI Code
List {
Picker(selection: $selection) {
Text("1")
.tag("1")
Section("Bar") {
Text("2")
.tag("2")
}
Label("3", systemImage: "3.circle")
.tag("3")
} label: {
Label("Foo", systemImage: "hand.tap")
Text("Bar")
} currentValueLabel: {
Text("Selected: \(selection)")
}
.pickerStyle(.wheel)
}Found an issue or have a suggestion?
More Picker Components
View allTabsPickerStyle
A picker style that presents options as segmented tabs. On macOS, this style produces a segmented picker with a visual treatment that distinguishes tab navigation from value selection. On iOS, tvOS, and visionOS, the visual appearance matches that of the standard standard .segmented style. On all supported platforms, VoiceOver announces options as tabs.
Horizontal Radio Group Layout
Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout.
SegmentedPickerStyle
A picker style that presents the options in a segmented control. Use this style when there are two to five options. Consider using menu when there are more than five options.
PalettePickerStyle
A picker style that presents the options as a row of compact elements. When used outside of menus, this style is rendered as a segmented picker. If that is the intended usage, consider segmented instead.
NavigationLinkPickerStyle
A picker style represented by a navigation link that presents the options by pushing a List-style picker view.
Explore Other Components
Browse allPreferred Top Column
Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead.
Disclosure Group
A view that shows or hides another content view, based on the state of a disclosure control.