Contents

disabledCustomizationBehavior(_:)

Sets the disabled customization behavior for a table column.

Declaration

@MainActor @preconcurrency func disabledCustomizationBehavior(_ behavior: TableColumnCustomizationBehavior) -> some TableColumnContent<Self.TableRowValue, Self.TableColumnSortComparator>

Parameters

  • behavior:

    The behavior to disable, or .all to not allow any customization.

Discussion

When the containing Table is bound to some TableColumnCustomization, all columns will be able to be customized by the user on macOS by default (i.e. TableColumnCustomizationBehavior.all). This modifier allows disabling specific behavior.

This modifier has no effect on iOS since Table does not support any built-in user customization features.

This does not prevent programmatic changes to a table column customization.

See Also

Configuring the content