FUIDurationPickerComponent
public protocol FUIDurationPickerComponent : AnyObject
Component protocol for DurationPicker properties.
-
The
UIPickerViewfor this cell. ThisdurationPickerwill be displayed only when this cell is selected.Declaration
Swift
var durationPicker: UIPickerView { get } -
Implementation of the change handler. This is invoked on changes to the
valueproperty.Declaration
Swift
var onChangeHandler: ((Double) -> Void)? { get set } -
minuteIntervalmust be evenly divisible by 60. The default is 5. The minimum is 1 and the maximum is 30.Declaration
Swift
var minuteInterval: Int { get set } -
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 istrue.Declaration
Swift
var isTrackingLiveChanges: Bool { get set } -
This property indicates whether the duration value of 0 is allowed or not. The default is
false, which means that the duration value can not be 0.Declaration
Swift
var allowsZeroDuration: Bool { get set } -
Set this property to customize the format of duration text. If this property is not set, use the default text format. The default text format is
%d Hrs %d Min, where%dis the number of hours and minutes.Declaration
Swift
var durationTextFormat: String { get set }