When to use it
Use native menu or picker presentation for a compact single choice. Use Segmented control when a small peer set should remain visible.
Choose one controlled value through native or accessible menu presentation.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Use native menu or picker presentation for a compact single choice. Use Segmented control when a small peer set should remain visible.
LumenPicker("Profile", selection: $profile, style: .segmented) {
Text("Quiet").tag(Profile.quiet)
Text("Balanced").tag(Profile.balanced)
}Reference
The primary shared and platform-specific options exposed by LumenPicker.
| API | Values or type | Default | Description |
|---|---|---|---|
| selection | Binding<SelectionValue> | Required | Stores the selected value. |
| content | @ViewBuilder () -> Content | Required | Provides labeled native options. |
| Binding setter | Binding setter | Required | Updates the selected value. |
| style | automatic · menu · segmented | automatic | Controls native availability or presentation. |
Native behavior
Use native menu or picker presentation for a compact single choice. Use Segmented control when a small peer set should remain visible.
The picker retains native selection semantics, keyboard behavior, and assistive-technology announcements for its selected value.
Shared component