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.
OptionPickerControlis 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
UIPickerViewfor customization.Declaration
Swift
public private(set) lazy var picker: UIPickerView { get set }
-
Currently
OptionPickerControlonly supports one component.Declaration
Swift
open func numberOfComponents(in pickerView: UIPickerView) -> Int
View on GitHub
OptionPickerControl Class Reference