Skip to content

Step-by-step progress view with labels and shapes. A good replacement for UIActivityIndicatorView and UIProgressView.

License

Notifications You must be signed in to change notification settings

korzonek/StepProgressView

 
 

Repository files navigation

StepProgressView

codebeat badge

Step-by-step progress view with labels and shapes. A good replacement for UIActivityIndicatorView and UIProgressView.

Usage

let progressView   = StepProgressView(frame: view.bounds)
progressView.steps = ["First", "Second", "Third", "Last"]

progressView.currentStep = 0 // started first step
...
progressView.currentStep = 4 // all done

Changing Appearance

Shape of the step icons:

progressView.stepShape = .Circle
progressView.firstStepShape = .Rhombus
progressView.lastStepShape = .Square
// also available: Triangle, DownTriangle

Line and text size and font:

progressView.lineWidth = 2.5
progressView.textFont = myFont

Colors:

progressView.tintColor = myGeneralTintColor

// alternatively:

progressView.currentStepColor = UIColor.redColor()
progressView.pastStepColor = UIColor.grayColor()
progressView.futureStepColor = UIColor.grayColor()

progressView.currentStepFillColor = UIColor.yellowColor()
progressView.pastStepFillColor = UIColor.grayColor()
progressView.futureStepFillColor = UIColor.lightGrayColor()

progressView.currentTextColor = UIColor.blueColor()
progressView.pastTextColor = UIColor.grayColor()
progressView.futureTextColor = UIColor.lightGrayColor()

About

Step-by-step progress view with labels and shapes. A good replacement for UIActivityIndicatorView and UIProgressView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 93.0%
  • Ruby 7.0%