MUOptionPicker

@IBDesignable
open class MUOptionPicker : MUNibView

Class that define a picker with custom option objects.

  • Get the current index or nil if none.

    Declaration

    Swift

    public private(set) var selectedIndex: Int? {
      get
      }
  • Define the inset of the background and chart

    Declaration

    Swift

    @IBInspectable
    open dynamic var selectedColor: UIColor { get set }
  • Define the inset of the background and chart

    Declaration

    Swift

    @IBInspectable
    open dynamic var unselectedColor: UIColor { get set }
  • Define the inset of the background and chart

    Declaration

    Swift

    @objc
    open dynamic var textFont: UIFont { get set }
  • The distance in points between the adjacent edges of the option button’s views.

    Declaration

    Swift

    @IBInspectable
    open dynamic var spacing: CGFloat { get set }
  • Define the left and right padding.

    Declaration

    Swift

    @IBInspectable
    open dynamic var contentHorizontalPadding: CGFloat { get set }
  • Add a MURadioButtonProtocol to the end of current list.

    Declaration

    Swift

    open func add(datas: [MUOptionData])
  • Select the MURadioButtonProtocol at specific index. It will unselect the current one if needed.

    Declaration

    Swift

    open func select(index: Int)
  • Default setup to load the view from a xib file.

    Declaration

    Swift

    open override func xibSetup()