MUMeasurePicker
@IBDesignable
open class MUMeasurePicker : MUNibView
Class that define two picker for value and unit.
-
The object that acts as the delegate of the measure picker.
Declaration
Swift
@IBOutlet public weak var delegate: MUMeasurePickerDelegate?
-
Define the text’s color.
Declaration
Swift
@IBInspectable open dynamic var textColor: UIColor { get set }
-
Define the text’s font.
Declaration
Swift
@objc open dynamic var textFont: UIFont { get set }
-
Define the separator’s height.
Declaration
Swift
@IBInspectable open dynamic var separatorHeight: CGFloat { get set }
-
Define the picker’s horizontal padding.
Declaration
Swift
@IBInspectable open dynamic var contentHorizontalPadding: CGFloat { get set }
-
Define the padding between the two pickers.
Declaration
Swift
@IBInspectable open dynamic var centerSpacing: CGFloat { get set }
-
Define the minimum value.
Declaration
Swift
@IBInspectable open dynamic var minValue: Int { get set }
-
Define the maximum value.
Declaration
Swift
@IBInspectable open dynamic var maxValue: Int { get set }
-
Define the current value.
Declaration
Swift
@IBInspectable open dynamic var currentValue: Int { get set }
-
Define the list of available units.
Declaration
Swift
open var units: [String] { get set }
-
Define the current unit index.
Declaration
Swift
@IBInspectable open dynamic var currentUnitIndex: Int { get set }
-
Set values and units from MUMeasureData.
Declaration
Swift
open func set(_ data: MUMeasureData)
-
Called by the picker view when it needs the number of components.
Declaration
Swift
public func numberOfComponents(in pickerView: UIPickerView) -> Int
-
Called by the picker view when it needs the number of rows for a specified component.
Declaration
Swift
public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int
-
Called by the picker view when it needs the view to use for a given row in a given component.
Declaration
Swift
public func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView
-
Called by the picker view when the user selects a row in a component.
Declaration
Swift
public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)