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.