init(Data, content: (Data.Element) -> Content)
Creates an instance that uniquely identifies and creates table rows across updates based on the identity of the underlying data.
Available when
Data
conforms to RandomAccessCollection
, ID
conforms to Hashable
, and Content
conforms to TableRowContent
.init<V>(Data, id: KeyPath <Data.Element, ID>, content: (Data.Element) -> Content)
Creates an instance that uniquely identifies and creates table rows across updates based on the provided key path to the underlying data’s identifier.
Available when
Data
conforms to RandomAccessCollection
, ID
conforms to Hashable
, and Content
conforms to TableRowContent
.