<!--
{
  "availability" : [
    "iOS: 16.6.0 -",
    "iPadOS: 16.6.0 -",
    "macCatalyst: 16.6.0 -",
    "macOS: 13.5.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TableColumn/init(_:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11TableColumnVAAs5NeverORs_AA4TextVRs1_rlE_5valueACyxAe2GG10Foundation23LocalizedStringResourceV_s7KeyPathCyxSSGtcAGRs0_rlufc::OverloadGroup"
  },
  "title" : "init(_:value:)"
}
-->

# init(_:value:)

Creates an unsortable column that displays a string property that
generates its label from a localized string resource.

```
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, value: KeyPath<RowValue, String>) where Content == Text
```

## Parameters

`titleResource`

Text resource for the column’s localized title.

`value`

The path to the property associated with the column.
The table uses this to display the property as verbatim text in each
row of the table.

## Discussion

This initializer creates a [`Text`](/documentation/SwiftUI/Text) view for you.
For more information about localizing strings, see [`Text`](/documentation/SwiftUI/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)