init(LocalizedStringKey , selection: Binding<SelectionValue >, content: () -> Content)
Creates a picker that generates its label from a localized string key.
Available when
Label
is Text
, 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
.