FUIDatePickerContentView
open class FUIDatePickerContentView : FUITintableDrawingView<FUIControlState>, FUITitleMultiLineComponent, FUIValueComponent, FUIDatePickerComponent
The basic inner view for FUIDatePickerCollectionViewCell.
-
Title text for Date Picker content view.
Declaration
Swift
public private(set) var title: FUIMultiLineText { get } -
The value of the property. The default is the current date.
This value is displayed next to, or below, the
titleby differentdateFormatters ordatePickerModes.Declaration
Swift
public var value: Date? { get set } -
Implementation of the change handler. This is invoked on changes to the
valueproperty.Declaration
Swift
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
public var noDateSelectedString: String? -
If
isTrackingLiveChangesis true, thenonChangeHandlerwill be invoked whenever a date is selected.Otherwise,
onChangeHandlerwill be invoked only when the Date Picker is closed.The default value is
true.Declaration
Swift
open var isTrackingLiveChanges: Bool -
The
DateFormatterto be used to display the selectedDate. Default formatter:- for
UIDatePicker.Mode.dateAndTimeit is medium date style followed by short time style. - for
UIDatePicker.Mode.dateit is medium date style - for
UIDatePicker.Mode.timeit is short time style
Declaration
Swift
open var dateFormatter: DateFormatter? { get set } - for
-
The
UIDatePicker.Modefor theUIDatePickerfor this view. The default value is.dateAndTime.Declaration
Swift
open var datePickerMode: UIDatePicker.Mode { get set } -
The
UIDatePickerfor this view. It will be displayed only when this view state is selected.Declaration
Swift
@objc public private(set) lazy var datePicker: UIDatePicker { get set }