Latest 1.0
Homepage https://github.com/kamilpiasek/KPProgressImageView
License MIT
Platforms ios 7.0, requires ARC
Dependencies UIImageTrim
Authors

[![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, [email protected]

License

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

Latest podspec

{
    "name": "KPProgressImageView",
    "version": "1.0",
    "summary": "KPProgressImageView - simple library to provide double-tinted images for showing any operation progress in easy way",
    "homepage": "https://github.com/kamilpiasek/KPProgressImageView",
    "license": "MIT",
    "authors": {
        "Kamil Piasek": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kamilpiasek/KPProgressImageView.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "KPProgressImageView": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "UIImageTrim": [
            "1.02"
        ]
    }
}

Pin It on Pinterest

Share This