OptionPickerControl

open class OptionPickerControl<T> : UIControl, UIPickerViewDataSource, UIPickerViewDelegate where T : OptionDescriptive

A UIControl that displays a UIPickerView and notifies changed selection and via UIControlEvents .valueChanged.

  • Returns an initialized OptionPickerControl.

    Declaration

    Swift

    public init()
  • Not supported. OptionPickerControl is not compatible with storyboards.

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Options that shows in the UIPickerView.

    Declaration

    Swift

    public var options: [Option<T>]
  • The currently selected item in the options.

    Declaration

    Swift

    public var selectedOption: Option<T> { get set }
  • A reference to the displayed UIPickerView for customization.

    Declaration

    Swift

    public private(set) lazy var picker: UIPickerView { get set }