<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TableColumnContent/customizationID(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18TableColumnContentPAAE15customizationIDyQrSSF"
  },
  "title" : "customizationID(_:)"
}
-->

# customizationID(_:)

Sets the identifier to be associated with a column when persisting its
state with `TableColumnCustomization`.

```
@MainActor @preconcurrency func customizationID(_ id: String) -> some TableColumnContent<Self.TableRowValue, Self.TableColumnSortComparator>
```

## Parameters

`id`

The identifier to associate with a column.

## Discussion

This is required to allow user customization of a specific table column,
in addition to the table as a whole being provided a binding to a
`TableColumnCustomization`.

The identifier needs to be stable, including across app version
updates, since it is used to persist the user customization.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)