FUIValuePickerComponent

public protocol FUIValuePickerComponent : AnyObject

Component protocol for FUIValuePickerContentView properties.

  • The UIPickerView to be displayed.

    Declaration

    Swift

    var valuePicker: UIPickerView { get }
  • Implementation of the change handler. This is invoked on changes to the value property.

    Declaration

    Swift

    var onChangeHandler: ((Int) -> Void)? { get set }
  • If isTrackingLiveChanges is true, then onChangeHandler will be invoked whenever a value is selected. Otherwise, onChangeHandler will 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 }