Skip to content

dadederk/StepByStep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StepByStep

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0+

Installation

StepByStep is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "StepByStep"

Usage

Initialisation

To add the stepped progress bar component, just initialise it with a frame and add it to your view:

self.stepByStepView = StepByStep(frame: stepByStepViewFrame)
self.view.addSubview(self.stepByStepView)

Customisation

Some customisation that you can do at the moment includes the number of steps and in which step you currently are. The separation between steps and the colour they have.

self.stepByStepView.currentStepIndex = 0
self.stepByStepView.numberOfSteps = 5
self.stepByStepView.stepsSeparation = 5.0
self.stepByStepView.stepsColor = UIColor.orangeColor()

Animation

Author

Daniel Devesa

Twitter Follow

License

StepByStep is available under the MIT license. See the LICENSE file for more info.

About

A simple, customizable and easy to use stepped progress bar UI component written in Swift for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published