Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
FormsApple

Picker

Choose one controlled value through native or accessible menu presentation.

Public APILumenPickerApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

Native example

Use Picker

Use native menu or picker presentation for a compact single choice. Use Segmented control when a small peer set should remain visible.

Picker rendered in the iPhone simulator Lumen playground
Verified runtime captureiPhone simulator
swift
LumenPicker("Profile", selection: $profile, style: .segmented) {
    Text("Quiet").tag(Profile.quiet)
    Text("Balanced").tag(Profile.balanced)
}

Reference

Public API

The primary shared and platform-specific options exposed by LumenPicker.

APIValues or typeDefaultDescription
selectionBinding<SelectionValue>RequiredStores the selected value.
content@ViewBuilder () -> ContentRequiredProvides labeled native options.
Binding setterBinding setterRequiredUpdates the selected value.
styleautomatic · menu · segmentedautomaticControls native availability or presentation.

Native behavior

Design and accessibility

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.

Accessibility

The picker retains native selection semantics, keyboard behavior, and assistive-technology announcements for its selected value.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package