MULabelCounter

@IBDesignable
open class MULabelCounter : MUNibView

Class that provide a counter label with customizable options.

  • The label’s text font.

    Declaration

    Swift

    @objc
    open dynamic var textFont: UIFont { get set }
  • The label’s text color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var textColor: UIColor { get set }
  • Specifies the output format of the label value.

    Declaration

    Swift

    @IBInspectable
    open dynamic var format: String { get set }
  • The label’s text alignment.

    Declaration

    Swift

    @objc
    open dynamic var textAlignment: NSTextAlignment { get set }
  • Optional: The IBInspectable version of the label’s text alignment.

    Declaration

    Swift

    @IBInspectable
    open dynamic var textAlignmentInt: Int { get set }
  • Specifies the counter animation type.

    Declaration

    Swift

    open var animationType: UIView.AnimationCurve { get set }
  • Optional: The IBInspectable version of the counter animation type.

    Declaration

    Swift

    @IBInspectable
    open dynamic var animationTypeInt: Int { get set }
  • Specifies a custom rate for counter animation

    Declaration

    Swift

    @IBInspectable
    open dynamic var rate: Float
  • Returns the current value

    Declaration

    Swift

    public var currentValue: Double { get }
  • Start counter animation from 0 up to given value with optional animation duration. Default duration is 0.

    Declaration

    Swift

    public func count(to value: Double, duration: TimeInterval = 0, completion: (() -> Void)? = nil)
  • Deinit the page control.

    Declaration

    Swift

    deinit