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