FUIValuePickerComponent
public protocol FUIValuePickerComponent : AnyObject
Component protocol for FUIValuePickerContentView properties.
-
The
UIPickerViewto be displayed.Declaration
Swift
var valuePicker: UIPickerView { get } -
Implementation of the change handler. This is invoked on changes to the
valueproperty.Declaration
Swift
var onChangeHandler: ((Int) -> Void)? { get set } -
If
isTrackingLiveChangesis true, thenonChangeHandlerwill be invoked whenever a value is selected. Otherwise,onChangeHandlerwill be invoked only when the value picker is closed.The default value is
true.Declaration
Swift
var isTrackingLiveChanges: Bool { get set } -
This property indicates whether the picker is to always be displayed.
The default is
false.Declaration
Swift
var alwaysShowPicker: Bool { get set }