PickerStyle

A type that specifies the appearance and interaction of all pickers within a view hierarchy.

ProtocoliOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+PickerStyle in SwiftUI

Declaration

React
type PickerStyle =
  | 'automatic'
  | 'inline'
  | 'menu'
  | 'navigationLink'
  | 'palette'
  | 'segmented'
  | 'tabs'
  | 'wheel'
  | DefaultPickerStyle
  | InlinePickerStyle
  | MenuPickerStyle
  | NavigationLinkPickerStyle
  | PalettePickerStyle
  | SegmentedPickerStyle
  | TabsPickerStyle
  | WheelPickerStyle;
Swift
protocol PickerStyle

Pass a literal, or build one with SwiftUI.PickerStyle from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • 'automatic'SwiftUI.PickerStyle.automatic

    The default picker style, based on the picker's context.

  • 'inline'SwiftUI.PickerStyle.inline

    A PickerStyle where each option is displayed inline with other views in the current container.

  • 'palette'SwiftUI.PickerStyle.palette

    A picker style that presents the options as a row of compact elements.

  • 'segmented'SwiftUI.PickerStyle.segmented

    A picker style that presents the options in a segmented control.

  • A picker style that presents options as segmented tabs.

  • 'wheel'SwiftUI.PickerStyle.wheel

    A 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.