[](https://travis-ci.org/Kamil Piasek/KPProgressImageView)
To run the example project, clone the repo, and run pod install from the Example directory first.
Usage is very simple.
- Add
KPProgressImageViewto your view as you usually do with any UIImageView. - Set
tintColorproperty to provide color for base image tint. - Assign value to
progressTintColorproperty to set tint color for part of image that will show your current progress. - To provide actual progress value modify
progressPercentproperty (notice it's values are between 0.f and 1.f). - Using
KPProgressDirectionenum you may optionally set progress direction (by default it's set toKPProgressDirectionLeftToRight).
UIImageTrim was used in KPProgressImageView to calculate actual image content insets.
KPProgressImageView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "KPProgressImageView"##Visual demo
Below you can see simple demo of four KPProgressImageView's, each of different direction. Slider modifies current progress from 0 to 100%.
Kamil Piasek, kamil.piasek@gmail.com
KPProgressImageView is available under the MIT license. See the LICENSE file for more info.
