init(_:value:)
Creates an unsortable column that displays a string property with a text label.
Declaration
nonisolated init(_ text: Text, value: KeyPath<RowValue, String>) where Content == TextParameters
- text:
The column’s label.
- 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, and treats the localized key similar to init(_:tableName:bundle:comment:). For more information about localizing strings, see Text.