Contents

subscript(visibility:)

The visibility of the column identified by its identifier.

Declaration

subscript(visibility id: String) -> Visibility { get set }

Overview

Explicit identifiers can be associated with a TableColumn using the customizationID(_:) modifier.

TableColumn("Number of Reports", value: \.duplicateCount) {
    Text($0.duplicateCount, format: .number)
}
.customizationID("numberOfReports")

...

columnsCustomization[visibility: "numberOfReports"] = .hidden

If the ID isn’t associated with the state, a default value of .automatic is returned.

See Also

Managing the customization