FUIDatePickerContentView

The basic inner view for FUIDatePickerCollectionViewCell.

  • The FUILabel that holds the key name string.

    Declaration

    Swift

    @objc
    @MainActor
    public var keyLabel: FUILabel
  • TheFUILabel that holds the value string.

    Declaration

    Swift

    @objc
    @MainActor
    public var valueLabel: FUILabel
  • Title text for Date Picker content view.

    Declaration

    Swift

    @MainActor
    public private(set) var title: FUIMultiLineText { get set }
  • The value of the property. The default is the current date.

    This value is displayed next to, or below, the title by different dateFormatters or datePickerModes.

    Declaration

    Swift

    @MainActor
    public var value: Date? { get set }
  • Implementation of the change handler. This is invoked on changes to the value property.

    Declaration

    Swift

    @MainActor
    public var onChangeHandler: ((Date?) -> Void)?
  • The text to be displayed when no date is selected.

    The default value is the localized string “No date selected”.

    Declaration

    Swift

    @MainActor
    public var noDateSelectedString: String?
  • If isTrackingLiveChanges is true, then onChangeHandler will be invoked whenever a date is selected.

    Otherwise, onChangeHandler will be invoked only when the Date Picker is closed.

    The default value is true.

    Declaration

    Swift

    @MainActor
    open var isTrackingLiveChanges: Bool
  • Indicates if the value of the cell could be changed or not. The default is true.

    Declaration

    Swift

    @MainActor
    open var isEditable: Bool { get set }
  • Indicate whether the slider is enabled. isEnabled and isEditable are in sync.

    Declaration

    Swift

    @MainActor
    override open var isEnabled: Bool { get set }
  • Indicates whether the cell is a mandatory field.

    The default value is false.

    Declaration

    Swift

    @MainActor
    open var isRequired: Bool { get set }
  • Indicates that the cell is a mandatory field.

    The default value is *.

    Declaration

    Swift

    @MainActor
    public var mandatoryIndicator: FUIText { get set }
  • The DateFormatter to be used to display the selected Date. Default formatter:

    • for UIDatePicker.Mode.dateAndTime it is medium date style followed by short time style.
    • for UIDatePicker.Mode.date it is medium date style
    • for UIDatePicker.Mode.time it is short time style

    Declaration

    Swift

    @MainActor
    open var dateFormatter: DateFormatter? { get set }
  • The UIDatePicker.Mode for the UIDatePicker for this view. The default value is .dateAndTime.

    Important

    .countDownTimer is not allowed here. Use FUIDurationPickerFormCell for count down mode.

    Declaration

    Swift

    @MainActor
    open var datePickerMode: UIDatePicker.Mode { get set }
  • The UIDatePicker for this view. It will be displayed only when this view state is selected.

    Declaration

    Swift

    @objc
    @MainActor
    public private(set) lazy var datePicker: UIDatePicker { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open override var accessibilityLabel: String? { get set }