Skip to content

Commit

Permalink
docs: Updated Active Step Color property
Browse files Browse the repository at this point in the history
  • Loading branch information
jayahariv authored Apr 26, 2018
1 parent 61daa21 commit d0ba557
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ JKSteppedProgressBar can be added and configured directly from storyboard.
UIImage(named: "MinnieMouse")!,
]
```
### setting custom color for the progress
- after setting your titles or images, set the property **activeStepColors**
```
progressbar.activeStepColors = [
UIColor.red,
UIColor.orange,
UIColor.green,
]
```
- this will change the color whenever you are at that step. For example, when you are at step 1, it will be red. And in second step, the whole progress bar will become orange and when you are at the last step, it will be green. So that the user will get a feeling of accomplishment through the steps.


## Demo
Expand Down

0 comments on commit d0ba557

Please sign in to comment.