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(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
.