MUTime

@IBDesignable
open class MUTime : MUNibView

Class that provide a circular indicator to represent time with customizable options.

  • Specifies the animation duration for the progress line to go from current progress value up to target value.

    Declaration

    Swift

    @objc
    open dynamic var animationDuration: TimeInterval
  • The progress value text font.

    Declaration

    Swift

    @objc
    open dynamic var font: UIFont { get set }
  • The progress value text color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var color: UIColor { get set }
  • The progress value text background color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var timeBackgroundColor: UIColor { get set }
  • Specifies the progress text value format.

    Declaration

    Swift

    @IBInspectable
    open dynamic var format: String { get set }
  • Show / Hide the progress text value. Shown by default.

    Declaration

    Swift

    @IBInspectable
    open dynamic var showValue: Bool { get set }
  • Define the progress line color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorColor: UIColor { get set }
  • Specifies the start angle in degrees for the progress line path.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorStartAngle: CGFloat { get set }
  • Specifies the end angle in degrees for the progress line path.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorEndAngle: CGFloat { get set }
  • Define the progress line width.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorWidth: CGFloat { get set }
  • Specifies the minimum progress value.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorMinValue: CGFloat { get set }
  • Specifies the maximum progress value.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorMaxValue: CGFloat { get set }
  • Specifies the progress value from 0.0 up to 1.0

    Declaration

    Swift

    @IBInspectable
    open dynamic var progressValue: CGFloat { get set }
  • Specifies the progress line cap style for the shape’s path.

    Declaration

    Swift

    @objc
    open dynamic var indicatorLineCap: CAShapeLayerLineCap { get set }
  • Resets the progress back to 0.

    Declaration

    Swift

    public func reset()
  • Sets the progress value with optional animation. Default is animated true.

    Current progress value can be observed using the progress closure. *

    Declaration

    Swift

    public func set(value: CGFloat, animated: Bool = true, progress: ((_ current: CGFloat) -> Void)? = nil)
  • 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()
  • The natural size for the receiving view, considering only properties of the view itself.

    Declaration

    Swift

    override open var intrinsicContentSize: CGSize { get }
  • Deinit the time progress.

    Declaration

    Swift

    deinit