init<Data>(Data, columns: () -> Columns)
Creates a table that computes its rows based on a collection of identifiable data.
Available when
Value
is Rows.TableRowValue
, Rows
conforms to TableRowContent
, Columns
conforms to TableColumnContent
, and Rows.TableRowValue
is Columns.TableRowValue
.init<Data>(Data, selection: Binding<Set<Value.ID>>, columns: () -> Columns)
Creates a table that computes its rows based on a collection of identifiable data, and that supports selecting multiple rows.
Available when
Value
is Rows.TableRowValue
, Rows
conforms to TableRowContent
, Columns
conforms to TableColumnContent
, and Rows.TableRowValue
is Columns.TableRowValue
.