MUCircularProgress

@IBDesignable
open class MUCircularProgress : MUNibView

Class that provide a circular progress indicator with customizable options.

  • An image displayed.

    Declaration

    Swift

    @IBInspectable
    open var icon: UIImage? { get set }
  • An image padding.

    Declaration

    Swift

    @objc
    open dynamic var iconMargin: UIEdgeInsets { get set }
  • The title text displayed.

    Declaration

    Swift

    @IBInspectable
    open var title: String { get set }
  • The title’s font.

    Declaration

    Swift

    @objc
    open dynamic var titleFont: UIFont { get set }
  • The title’s title color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleColor: UIColor { get set }
  • The detail text displayed.

    Declaration

    Swift

    @IBInspectable
    open var detail: String { get set }
  • The detail’s font.

    Declaration

    Swift

    @objc
    open dynamic var detailFont: UIFont { get set }
  • The detail’s title color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var detailColor: UIColor { get set }
  • Define the vertical inset between the title and the detail labels.

    Declaration

    Swift

    @IBInspectable
    open dynamic var textVerticalInset: CGFloat { get set }
  • Define the horizontal padding for the title and detail labels.

    Declaration

    Swift

    @IBInspectable
    open dynamic var textPaddingInset: CGFloat { get set }
  • Define the track line color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var trackLineColor: UIColor { get set }
  • Define the track background color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var trackBackgroundColor: UIColor { get set }
  • Define the track line width.

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var trackLineCap: CAShapeLayerLineCap { get set }
  • Specifies the start angle for the track line path.

    Declaration

    Swift

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

    Declaration

    Swift

    @IBInspectable
    open dynamic var trackValue: CGFloat { get set }
  • Define the progress offet.

    Declaration

    Swift

    @IBInspectable
    open dynamic var offset: CGFloat
  • Define the progress line color.

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var progressLineCap: CAShapeLayerLineCap { get set }
  • Define the progress line width.

    Declaration

    Swift

    @IBInspectable
    open dynamic var progressLineWidth: CGFloat { get set }
  • Specifies the start angle for the progress line path.

    Declaration

    Swift

    @IBInspectable
    open dynamic var progressStartAngle: 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 animation duration for the progress line to go from current progress value up to target value.

    Declaration

    Swift

    @objc
    open dynamic var animationDuration: TimeInterval
  • 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)
  • Lays out subviews.

    Declaration

    Swift

    override open func layoutSubviews()
  • Updates constraints for the view.

    Declaration

    Swift

    open override func updateConstraints()
  • The natural size for the receiving view, considering only properties of the view itself.

    Declaration

    Swift

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

    Declaration

    Swift

    deinit