PickerStyle
A type that specifies the appearance and interaction of all pickers within a view hierarchy.
Declaration
type PickerStyle =
| 'automatic'
| 'inline'
| 'menu'
| 'navigationLink'
| 'palette'
| 'segmented'
| 'tabs'
| 'wheel'
| DefaultPickerStyle
| InlinePickerStyle
| MenuPickerStyle
| NavigationLinkPickerStyle
| PalettePickerStyle
| SegmentedPickerStyle
| TabsPickerStyle
| WheelPickerStyle;protocol PickerStylePass a literal, or build one with SwiftUI.PickerStyle from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.PickerStyle.automaticThe default picker style, based on the picker's context.
'inline'SwiftUI.PickerStyle.inlineA
PickerStylewhere each option is displayed inline with other views in the current container.'palette'SwiftUI.PickerStyle.paletteA picker style that presents the options as a row of compact elements.
'segmented'SwiftUI.PickerStyle.segmentedA picker style that presents the options in a segmented control.
'tabs'SwiftUI.PickerStyle.tabsA picker style that presents options as segmented tabs.
'wheel'SwiftUI.PickerStyle.wheelA picker style that presents the options in a scrollable wheel that shows the selected option and a few neighboring options.
Used by
See also
More in Styles.
- AccessoryCircularCapacityGaugeStyleA gauge style that displays a closed ring that's partially filled in to indicate the gauge's current value.
- AccessoryCircularGaugeStyleA gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge's current value.
- AccessoryLinearCapacityGaugeStyleA gauge style that displays bar that fills from leading to trailing edges as the gauge's current value increases.
- AccessoryLinearGaugeStyleA gauge style that displays bar with a marker that appears at a point along the bar to indicate the gauge's current value.
- ArrangementViewStyleA style that configures an ArrangementView with an arrangement.
- AutomaticArrangementViewStyleThe default arrangement view style.
- AutomaticControlGroupStyleThe default control group style.
- AutomaticDisclosureGroupStyleA disclosure group style that resolves its appearance automatically based on the current context.
- AutomaticFormStyleThe default form style.
- AutomaticLabeledContentStyleThe default labeled content style.
- AutomaticNavigationSplitViewStyleA navigation split style that resolves its appearance automatically based on the current context.
- AutomaticTableStyleThe default table style in the current context.