Contents

init(selection:content:label:)

Creates a picker that displays a custom label.

Declaration

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

Parameters

  • selection:

    A binding to a property that determines the currently-selected option.

  • content:

    A view that contains the set of options.

  • label:

    A view that describes the purpose of selecting an option.

See Also

Creating a picker