init(LocalizedStringKey , value: KeyPath <RowValue , String>, comparator: String.StandardComparator )
Creates a sortable column that displays a string property, and which 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>(S, value: KeyPath <RowValue , String>, comparator: String.StandardComparator )
Creates a sortable column that displays a string property, and which 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(LocalizedStringKey , value: KeyPath <RowValue , String>, comparator: String.StandardComparator )
Creates an unsortable column that displays a string property, and which generates its label from a localized string key.
Available when
RowValue
inherits NSObject
, RowValue
conforms to Identifiable
, Sort
is SortDescriptor<RowValue>
, Content
conforms to View
, and Label
is Text
.init<S>(S, value: KeyPath <RowValue , String>, comparator: String.StandardComparator )
Creates a sortable column that displays a string property, and which generates its label from a string.
Available when
RowValue
inherits NSObject
, RowValue
conforms to Identifiable
, Sort
is SortDescriptor<RowValue>
, Content
conforms to View
, and Label
is Text
.init<S>(S, value: KeyPath <RowValue , String>, comparator: String.StandardComparator , content: (RowValue ) -> Content)
Creates a sortable column that displays a string property.
Available when
RowValue
inherits NSObject
, RowValue
conforms to Identifiable
, Sort
is SortDescriptor<RowValue>
, Content
conforms to View
, and Label
is Text
.init(LocalizedStringKey , value: KeyPath <RowValue , String?>, comparator: String.StandardComparator , content: (RowValue ) -> Content)
Creates a sortable column that generates its label from a localized string key.
Available when
RowValue
inherits NSObject
, RowValue
conforms to Identifiable
, Sort
is SortDescriptor<RowValue>
, Content
conforms to View
, and Label
is Text
.init<S>(S, value: KeyPath <RowValue , String?>, comparator: String.StandardComparator , content: (RowValue ) -> Content)
Creates a sortable column that displays a string property.
Available when
RowValue
inherits NSObject
, RowValue
conforms to Identifiable
, Sort
is SortDescriptor<RowValue>
, Content
conforms to View
, and Label
is Text
.