MURangeTrimmer

@IBDesignable
open class MURangeTrimmer : MUNibView

Controller to create one to n range(s) trimmer

  • Define the width of the picker to increase or decrease one range

    Declaration

    Swift

    @IBInspectable
    open dynamic var pickerWidth: CGFloat { get set }
  • Define the width of the clickable area of the picker: 1.0 will be pickerWidth + borderWidth

    Declaration

    Swift

    @IBInspectable
    open dynamic var pickerAreaMultiplierWidth: CGFloat
  • Define the color of the indicator of pickers

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorColor: UIColor { get set }
  • Define the border’s width of each SubRange

    Declaration

    Swift

    @IBInspectable
    open dynamic var borderWidth: CGFloat { get set }
  • Define the border’s color of each SubRange

    Declaration

    Swift

    @IBInspectable
    open dynamic var borderColor: UIColor { get set }
  • Define the corner radius of the trimmer and of each SubRange

    Declaration

    Swift

    @IBInspectable
    open dynamic var cornerRadius: CGFloat { get set }
  • Define the padding left and right of the title of each SubRange

    Declaration

    Swift

    @IBInspectable
    open dynamic var titlePadding: CGFloat { get set }
  • Define the title’s color of each SubRange

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleColor: UIColor { get set }
  • Define the font of each SubRange

    Declaration

    Swift

    @objc
    open dynamic var titleFont: UIFont { get set }
  • Define the string that will be add the index + 1 as a new range name

    Declaration

    Swift

    @IBInspectable
    open dynamic var defaultTitle: String { get set }
  • Define the appearence of the keyboard when editing the title

    Declaration

    Swift

    @objc
    open dynamic var keyboardAppearance: UIKeyboardAppearance { get set }
  • Define the caret’s color of the UITextField

    Declaration

    Swift

    @IBInspectable
    open dynamic var caretColor: UIColor { get set }
  • Define the title for a given range trimmer index

    Declaration

    Swift

    open func set(title: String, at index: Int)
  • Returns all range trimmer

    Declaration

    Swift

    open var ranges: [MUBasicRange] { get set }
  • Define the minimum size of a range in percentage, return false if impossible

    Declaration

    Swift

    @discardableResult
    open func set(minimumPercentage: CGFloat) -> Bool
  • Define the max number of range

    Declaration

    Swift

    @discardableResult
    open func set(maximumCount: Int) -> Bool
  • Split the selected range trimmer

    Declaration

    Swift

    @discardableResult
    open func split(at index: Int) -> Bool
  • Remove the selected range trimmer

    Declaration

    Swift

    @discardableResult
    open func remove(at index: Int) -> Bool
  • Default setup to load the view from a xib file.

    Declaration

    Swift

    open override func xibSetup()
  • Lays out subviews.

    Declaration

    Swift

    override open func layoutSubviews()