Contents

init(of:sortOrder:columns:rows:)

Creates a sortable table with the given columns and rows.

Declaration

nonisolated init<Sort>(of valueType: Value.Type, sortOrder: Binding<[Sort]>, @TableColumnBuilder<Value, Sort> columns: () -> Columns, @TableRowBuilder<Value> rows: () -> Rows) where Sort : SortComparator, Columns.TableRowValue == Sort.Compared

Parameters

  • valueType:

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

  • sortOrder:

    A binding to the ordered sorting of columns.

  • columns:

    The columns to display in the table.

  • rows:

    The rows to display in the table.

See Also

Creating a sortable table from columns and rows