Skip to content

Repository files navigation

StepProgressView

codebeat badge

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

Usage

letprogressView=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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages