<!--
{
  "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:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11TableColumnVAASo8NSObjectCRbz10Foundation14SortDescriptorVyxGRs_AA4TextVRs1_rlE_5value7contentACyxAIq0_AKGAF23LocalizedStringResourceV_s7KeyPathCyxSbGq0_xctcfc::OverloadGroup"
  },
  "title" : "init(_:value:content:)"
}
-->

# init(_:value:content:)

Creates a sortable column for Boolean values
that generates its label from a localized string resource.

```
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, value: KeyPath<RowValue, Bool>, @ContentBuilder content: @escaping (RowValue) -> Content)
```

## Parameters

`titleResource`

The resource for the column’s localized title.

`value`

The path to the property associated with the column,
which will be used to update and reflect the sorting state in a
table.

`content`

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

## Discussion

This initializer creates a [`Text`](/documentation/SwiftUI/Text) view on your behalf. See
[`Text`](/documentation/SwiftUI/Text) for more information about localizing strings.

---

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)