init(selection: Binding<SelectionValue >, content: () -> Content, label: () -> Label)
Creates a picker that displays a custom label.
Available when
Label
conforms to View
, SelectionValue
conforms to Hashable
, and Content
conforms to View
.init<S>(S, selection: Binding<SelectionValue >, content: () -> Content)
Creates a picker that generates its label from a string.
Available when
Label
is Text
, SelectionValue
conforms to Hashable
, and Content
conforms to View
.