init<V>(LocalizedStringKey , value: KeyPath <RowValue , V>, content: (RowValue ) -> Content)
Creates a sortable column that generates its label from a localized string key.
Available when
RowValue
conforms to Identifiable
, Sort
is KeyPathComparator<RowValue>
, Content
conforms to View
, and Label
is Text
.init<S, V>(S, value: KeyPath <RowValue , V>, content: (RowValue ) -> Content)
Creates a sortable column that generates its label from a string.
Available when
RowValue
conforms to Identifiable
, Sort
is KeyPathComparator<RowValue>
, Content
conforms to View
, and Label
is Text
.init<S, V, C>(S, value: KeyPath <RowValue , V>, comparator: C, content: (RowValue ) -> Content)
Creates a sortable column that generates its label from a string.
Available when
RowValue
conforms to Identifiable
, Sort
is KeyPathComparator<RowValue>
, Content
conforms to View
, and Label
is Text
.