init(_:sortOrder:columns:)
Creates a sortable table that computes its rows based on a collection of identifiable data.
Declaration
nonisolated init<Data, Sort>(_ data: Data, sortOrder: Binding<[Sort]>, @TableColumnBuilder<Value, Sort> columns: () -> Columns) where Rows == TableForEachContent<Data>, Data : RandomAccessCollection, Sort : SortComparator, Columns.TableRowValue == Data.Element, Data.Element == Sort.ComparedParameters
- data:
The identifiable data for computing the table rows.
- sortOrder:
A binding to the ordered sorting of columns.
- columns:
The columns to display in the table.