Generic Initializer

init(_:selection:content:)

No overview available.

Declaration

init<S>(_ title: S, selection: Binding<SelectionValue>, @ViewBuilder content: () -> Content) where S : StringProtocol
Available when Label is Text.

See Also

Creating a Picker

init(selection: Binding<SelectionValue>, label: Label, content: () -> Content)

Creates an instance that selects from content associated with Selection values.