init<Data, ID, RowContent >(Data, id: KeyPath <Data.Element, ID>, rowContent : (Data.Element) -> RowContent )
Creates a list that identifies its rows based on a key path to the identifier of the underlying data.
あるリストを作成します、それは、それの行それらを、基礎をなすデータの識別子へのあるキーパスに基づいて識別するものです。
Available when
SelectionValue
is Never
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
.