Skip to content

iOS components Forms

StancePicker

Stable

A labelled native Picker shown as a menu inside Stance field chrome.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onPicker, Menu
  • Kindview

Preview

Rendered by the SwiftUI library, not drawn by hand.

StancePicker on iOS and iPadOSStancePicker on iOS and iPadOSStancePicker on iOS and iPadOS
StancePicker, Light appearance
Light
StancePicker, Dark appearance
Dark
StancePicker, High contrast appearance
High contrast

Usage

swift
StancePicker("Plan", selection: $role, options: [("admin", "Admin"), ("member", "Member")])

Accessibility

  • Selected value is exposed as the accessibility value

On other platforms