StepProgressBar
is a very simple and customizable step-by-step progress bar.
StepProgressBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'StepProgressBar'
Copy the StepProgressBar.swift
to your Xcode project. That should do it.
StepProgressBar can be used via code or interface builder.
- Drag
UIView
to your View Controller in the Storyboard. - Select your view and in the
Identity Inspector
change the class toStepProgressBar
.
⚠️ Importand - change the module toStepProgressBar
too.
- Customization
- Import
StepProgressBar
in your view controller class.
import StepProgressBar
- Create an
IBOutlet
of the view in your view controller class.
@IBOutlet weak var progressView: StepProgressBar!
For Next
step:
progressView.next()
For Previous
step:
progressView.previous()
Use the traditional init methods and properties.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 9.0+
- Xcode 10.0+
- Swift 4.0+
SerhiiMatvieiev, [email protected]
StepProgressBar is available under the MIT license. See the LICENSE file for more info.