<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TableColumn/init(_:content:)-52cmd",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11TableColumnVAAs5NeverORs_AA4TextVRs1_rlE_7contentACyxAEq0_AGGAA18LocalizedStringKeyV_q0_xctcfc"
  },
  "title" : "init(_:content:)"
}
-->

# init(_:content:)

Creates an unsortable column that generates its label from a localized
string key.

```
nonisolated init(_ titleKey: LocalizedStringKey, @ContentBuilder content: @escaping (RowValue) -> Content)
```

## Parameters

`titleKey`

The key for the column’s localized title.

`content`

The view content to display for each row in a table.

## Discussion

This initializer creates a `Text` view for you, and treats the
localized key similar to `Text/init(_:tableName:bundle:comment:)`.
For more information about localizing strings, see `Text`.

---

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)