SweetUI

Search items

Jump to an item

recipe

radio-group

Picker: inline exclusive group.

radio-grouppickerselectionoptionsguidance
radio-group, light

On iPad

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

radio-group on iPad, light

Install

Usage

@State private var selection = "standard"

Picker("Delivery speed", selection: $selection) {
    Text("Standard").tag("standard")
    Text("Express").tag("express")
    Text("Same day").tag("same-day")
}
.pickerStyle(.inline)
.registryItem("radio-group")

Why native is enough

.pickerStyle(.inline): exclusive group; no wrapper.

Accessibility contract

  • Retains Picker selection, option semantics; caller-owned via binding.
  • Visible labels, native selected-state; inherits Dynamic Type, enabled, direction.

Details

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