init<Data, ID, RowContent >(Data, id: KeyPath <Data.Element, ID>, children: KeyPath <Data.Element, Data?>, selection: Binding<SelectionValue ?>?, rowContent : (Data.Element) -> RowContent )
Creates a hierarchical 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>, children: KeyPath <Data.Element, Data?>, selection: Binding<Set<SelectionValue >>?, rowContent : (Data.Element) -> RowContent )
Creates a hierarchical 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
.init<Data, RowContent >(Data, children: KeyPath <Data.Element, Data?>, rowContent : (Data.Element) -> RowContent )
Creates a hierarchical list that computes its rows on demand from an underlying collection of identifiable data.
Available when
SelectionValue
is Never
and Content
conforms to View
.init<Data, RowContent >(Data, children: KeyPath <Data.Element, Data?>, selection: Binding<SelectionValue ?>?, rowContent : (Data.Element) -> RowContent )
Creates a hierarchical 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, children: KeyPath <Data.Element, Data?>, selection: Binding<Set<SelectionValue >>?, rowContent : (Data.Element) -> RowContent )
Creates a hierarchical 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
.