init(_:value:)
Creates an unsortable column that displays a string property that generates its label from a localized string resource.
Declaration
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, value: KeyPath<RowValue, String>) where Content == TextParameters
- 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 view for you. For more information about localizing strings, see Text.