/KPProgressImageView

Primary LanguageObjective-CMIT LicenseMIT

KPProgressImageView

[![CI Status](http://img.shields.io/travis/Kamil Piasek/KPProgressImageView.svg?style=flat)](https://travis-ci.org/Kamil Piasek/KPProgressImageView) Version License Platform

Usage

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

Usage is very simple.

  • Add KPProgressImageView to your view as you usually do with any UIImageView.
  • Set tintColor property to provide color for base image tint.
  • Assign value to progressTintColor property to set tint color for part of image that will show your current progress.
  • To provide actual progress value modify progressPercent property (notice it's values are between 0.f and 1.f).
  • Using KPProgressDirection enum you may optionally set progress direction (by default it's set to KPProgressDirectionLeftToRight).

Requirements

UIImageTrim was used in KPProgressImageView to calculate actual image content insets.

Installation

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%.

Demo

Author

Kamil Piasek, kamil.piasek@gmail.com

License

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