View Source Picker
<Picker>
A control that picks one of multiple values.
Overview
The value of a picker is the value of the TagModifier
for the selected option.
Use the content
children to specify the options for the picker, and the label
children to provide a label.
<Picker selection={@transport} phx-change="transport-changed">
<Text template={:label}>Transportation</Text>
<Group template={:content}>
<Label systemImage="car" tag="car">Car</Label>
<Label systemImage="bus" tag="bus">Bus</Label>
<Label systemImage="tram" tag="tram">Tram</Label>
</Group>
</Picker>
Attributes
selection
Children
content
label
SwiftUI Documentation
See SwiftUI.Picker
for more details on this View.