init<Data, ID, RowContent >(Data, id: KeyPath <Data.Element, ID>, selection: Binding<SelectionValue ?>?, rowContent : (Data.Element) -> RowContent )
Creates a list that identifies its rows based on a key path to the identifier of the underlying data, optionally allowing users to select a single row.
Available when
SelectionValue
conforms to Hashable
and Content
conforms to View
.init<Data, ID, RowContent >(Data, id: KeyPath <Data.Element, ID>, selection: Binding<Set<SelectionValue >>?, rowContent : (Data.Element) -> RowContent )
Creates a list that identifies its rows based on a key path to the identifier of the underlying data, optionally allowing users to select multiple rows.
Available when
SelectionValue
conforms to Hashable
and Content
conforms to View
.