init<Data, RowContent >(Data, selection: Binding<SelectionValue ?>?, rowContent : (Data.Element) -> RowContent )
Creates a list that computes its rows on demand from an underlying collection of identifiable data, optionally allowing users to select a single row.
Available when
SelectionValue
conforms to Hashable
and Content
conforms to View
.init<Data, RowContent >(Data, selection: Binding<Set<SelectionValue >>?, rowContent : (Data.Element) -> RowContent )
Creates a list that computes its rows on demand from an underlying collection of identifiable data, optionally allowing users to select multiple rows.
Available when
SelectionValue
conforms to Hashable
and Content
conforms to View
.