Contents

init(of:columnCustomization:columns:rows:)

Creates a table with the given columns and rows that generates its contents using values of the given type and has dynamically customizable columns.

Declaration

nonisolated init(of valueType: Value.Type, columnCustomization: Binding<TableColumnCustomization<Value>>, @TableColumnBuilder<Value, Never> columns: () -> Columns, @TableRowBuilder<Value> rows: () -> Rows)

Parameters

  • valueType:

    The type of value used to derive the table’s contents.

  • columnCustomization:

    A binding to the state of columns.

  • columns:

    The columns to display in the table.

  • rows:

    The rows to display in the table.

Discussion

Each column in the table that should participate in customization is required to have an identifier, specified with customizationID(_:).

See Also

Creating a table with dynamically customizable columns