SweetUI

Search items

Jump to an item

recipe

native-select

Picker menu.

native-selectpickermenuselectionguidance
native-select, light

On iPad

The same installed source at a regular width. It adapts its layout without a separate design.

native-select on iPad, light

Install

Usage

@State private var sort = "recent"

Picker("Sort", selection: $sort) {
    Text("Most recent").tag("recent")
    Text("Oldest").tag("oldest")
    Text("Amount").tag("amount")
}
.pickerStyle(.menu)
.registryItem("native-select")

Why native is enough

.pickerStyle(.menu) on Picker; no wrapper.

Accessibility contract

  • Retains Picker accessibility, menu, selection; needs caller labels, text.
  • State external (binding); inherits Dynamic Type, enabled, tint, direction.

Details

Kindrecipe
Version0.3.1
PlatformsiOS 26.0+
Dependenciesnone
Sourcenone (native guidance)