init(_:content:)
Creates an unsortable column that generates its label from a localized string resource.
Declaration
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, @ContentBuilder content: @escaping (RowValue) -> Content)Parameters
- titleResource:
Text resource 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. For more information about localizing strings, see Text.