init(_:columnCustomization:columns:)
Creates a table that computes its rows based on a collection of identifiable data and has dynamically customizable columns.
Declaration
nonisolated init<Data>(_ data: Data, columnCustomization: Binding<TableColumnCustomization<Value>>, @TableColumnBuilder<Value, Never> columns: () -> Columns) where Rows == TableForEachContent<Data>, Data : RandomAccessCollection, Columns.TableRowValue == Data.ElementParameters
- data:
The identifiable data for computing the table rows.
- columnCustomization:
A binding to the state of columns.
- columns:
The columns 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(_:).