init(selection:label:content:)
Creates a picker that displays a custom label.
Declaration
nonisolated init(selection: Binding<SelectionValue>, label: Label, @ViewBuilder content: () -> Content)Parameters
- selection:
A binding to a property that determines the currently-selected option.
- label:
A view that describes the purpose of selecting an option.
- content:
A view that contains the set of options.