iPhone SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.
201elements
Picker
TabsPickerStyle
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.
Explore TabsPickerStyle on iPhone in portrait, with SwiftUI code and Apple API documentation.
SwiftUI code
Picker("Foo", selection: $selection) {
Text("1")
.tag("1")
Section("Bar") {
Text("2")
.tag("2")
}
Text("3")
.tag("3")
}
.pickerStyle(.tabs)Compatibility
iOS 27.0+ iPadOS 27.0+ macOS 27.0+ tvOS 27.0+ visionOS 27.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone screenshot for TabsPickerStyle.