MUProgress
@IBDesignable
open class MUProgress : MUNibView
Class that provide a horizontal progress with optionl value indicator with customizable options.
-
Returns the current progress value.
Declaration
Swift
public var currentValue: CGFloat { get }
-
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 }
-
Define the track line color.
Declaration
Swift
@IBInspectable open dynamic var trackColor: UIColor { get set }
-
Specifies the progress thickness.
Declaration
Swift
@IBInspectable open dynamic var thickness: CGFloat { get set }
-
Specifies the progress color.
Declaration
Swift
@IBInspectable open dynamic var color: UIColor { get set }
-
Show / Hide the progress indicator. Default is false
Declaration
Swift
@IBInspectable open dynamic var showIndicator: Bool { get set }
-
Specifies the progress value multiplier. A value of 0.1 with multiplier of 100 will show 10 in the progress value.
Declaration
Swift
@IBInspectable open dynamic var indicatorMultiplier: CGFloat { get set }
-
Specifies the indicator’s value format.
Declaration
Swift
@IBInspectable open dynamic var indicatorFormat: String { get set }
-
Specifies the indicator’s size modifier rate. Default is 1.0 (ie: 100%)
Declaration
Swift
@objc open dynamic var indicatorWidth: CGFloat { get set }
-
Specifies the indicator’s value font.
Declaration
Swift
@objc open dynamic var indicatorFont: UIFont { get set }
-
Specifies the indicator’s color.
Declaration
Swift
@IBInspectable open dynamic var indicatorColor: UIColor { get set }
-
Specifies the indicator’s value color.
Declaration
Swift
@IBInspectable open dynamic var indicatorValueColor: UIColor { get set }
-
Specifies the indicator’s corner radius.
Declaration
Swift
@IBInspectable open dynamic var indicatorCornerRadius: CGFloat { get set }
-
Specifies the indicator’s bottom padding.
Declaration
Swift
@objc open dynamic var indicatorBottomInset: CGFloat { get set }
-
Specifies the progress title text with an optional animation duration. Default animation duration is 0.3.
Declaration
Swift
public func set(title: String, duration: TimeInterval = 0.3)
-
Specifies the progress value with an optionel animation duration. By default animation duration is 0.
Declaration
Swift
public func set(progress: CGFloat, duration: TimeInterval = 0)
-
Default setup to load the view from a xib file.
Declaration
Swift
open override func xibSetup()