MUTimeSlider

@IBDesignable
open class MUTimeSlider : MUNibView

Class that provide a slider to represent a timeline with customizable options.

  • The object that acts as the delegate of the time slider.

    Declaration

    Swift

    @IBOutlet
    public weak var delegate: MUTimeSliderDelegate?
  • Returns the current time based on slider position.

    Declaration

    Swift

    public var currentTime: TimeInterval { get }
  • Returns the current slider position.

    Declaration

    Swift

    public var currentPositionX: CGFloat { get }
  • Define the border’s width

    Declaration

    Swift

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

    Declaration

    Swift

    @IBInspectable
    open dynamic var borderColor: UIColor { get set }
  • Define the duration to calculate current slide time

    Declaration

    Swift

    open var duration: TimeInterval { get set }
  • Define the indicator’s width

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorWidth: CGFloat { get set }
  • Define the indicator’s color

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorColor: UIColor { get set }
  • Define the time’s label color

    Declaration

    Swift

    @IBInspectable
    open dynamic var timeColor: UIColor { get set }
  • Define the time’s label font

    Declaration

    Swift

    @objc
    open dynamic var timeFont: UIFont { get set }
  • Define the time’s label padding to the top

    Declaration

    Swift

    @IBInspectable
    open dynamic var timeTopPadding: CGFloat { get set }
  • Define the time’s label padding to the indicator (left or right, depending of the space)

    Declaration

    Swift

    @IBInspectable
    open dynamic var timeHorizontalPadding: CGFloat { get set }
  • Define the slider position using percentage of the overall timeline.

    Declaration

    Swift

    public func set(percentage: Double)
  • Define the slider position.

    Declaration

    Swift

    public func set(positionX: CGFloat)
  • Default setup to load the view from a xib file.

    Declaration

    Swift

    open override func xibSetup()