ProgressIndicator

open class ProgressIndicator: UIView

A customizable progress indicator that draws a circle outline and indicates an indefinite progress by animating in loop a line moving allong the path of the circle.

Can be customized using the UIAppearance proxy.

  • The line width for the outline of the indicator.

    You can change this using the appearance proxy:

    ProgressIndicator.appearance().lineWidth = 4
    

    Declaration

    Swift

    @objc open dynamic var lineWidth: CGFloat
  • The length of the circle segment to be animated.

    You can change this using the appearance proxy:

    ProgressIndicator.appearance().pathLength = 0.2
    

    Declaration

    Swift

    @objc open dynamic var pathLength: CGFloat
  • The stroke color of the progress indicator.

    You can change this using the appearance proxy:

    ProgressIndicator.appearance().strokeColor = UIColor.redColor()
    

    Declaration

    Swift

    @objc open dynamic var strokeColor: UIColor
  • The base color.

    You can change this using the appearance Proxy:

    ProgressIndicator.appearance().baseColor = UIColor.blueColor()
    

    Declaration

    Swift

    @objc open dynamic var baseColor: UIColor
  • Whether or not to round the progress indicator start and end cap.

    You can change this using the appearance Proxy:

    ProgressIndicator.appearance().roundCap = false

    Declaration

    Swift

    @objc open dynamic var roundCap: Bool