FUISortCriterion

public struct FUISortCriterion : Equatable, Identifiable, CustomStringConvertible

Data model for FUIOrderPickerFormCell

Usage Example:

A typical sort criterion with default style:
FUISortCriterion(criterion: FUIMultiLineText("Name"),
                 isSelected: false,
                 isAscending: true,
                 ascendingText: FUIMultiLineText("Ascending"),
                 descendingText: FUIMultiLineText("Descending"))

A sort criterion with customized style:
FUISortCriterion(criterion: FUIMultiLineText("Priority", font: UIFont.preferredFioriFont(forTextStyle: .body), textColor: UIColor.red),
                 isSelected: true,
                 isAscending: false,
                 ascendingText: FUIMultiLineText("Lowest first", font: UIFont.preferredFioriFont(forTextStyle: .body), textColor: UIColor.purple),
                 descendingText: FUIMultiLineText("Highest first", font: UIFont.preferredFioriFont(forTextStyle: .headline), textColor: UIColor.blue))