Contents

init(selection:content:)

Creates a list with the given content that supports selecting a single row that cannot be deselected.

Declaration

@MainActor @preconcurrency init(selection: Binding<SelectionValue>, @ViewBuilder content: () -> Content)

Parameters

  • selection:

    A binding to a selected row.

  • content:

    The content of the list.

See Also

Creating a list from a set of views