FUIDurationPickerComponent
public protocol FUIDurationPickerComponent : AnyObject
Component protocol for DurationPicker
properties.
-
The
UIPickerView
for this cell. ThisdurationPicker
will 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
value
property.Declaration
Swift
var onChangeHandler: ((Double) -> Void)? { get set }
-
minuteInterval
must 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
isTrackingLiveChanges
is true, thenonChangeHandler
will be invoked whenever a date is selected. Otherwise,onChangeHandler
will 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%d
is the number of hours and minutes.Declaration
Swift
var durationTextFormat: String { get set }