Initializer

init(_:content:)

Creates an instance that uniquely identifies and creates table rows across updates based on the identity of the underlying data.

Declaration 宣言

init(_ data: Data, content: @escaping (Data.Element) -> Content) where ID == Data.Element.ID, Data.Element == Content.TableRowValue
Available when Data conforms to RandomAccessCollection, ID conforms to Hashable, and Content conforms to TableRowContent.

Parameters パラメータ

data

The identified data that the ForEach instance uses to create table rows dynamically.

content

The table row builder that creates rows dynamically.

See Also 参照

Creating a Collection of Table Rows