Contents

init(_:value:content:)

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

Declaration

@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 view on your behalf. See Text for more information about localizing strings.

See Also

Creating a sortable column