Latest 0.1
License MIT
Platforms ios 6.0, requires ARC
Frameworks QuartzCore


A custom view component that lets the user easily present a progress view masked with an image containing an alpha channel (i.e. PNGs). The view’s progress can be animated; foreground and background colors can be customized as well as the duration of the animation.


Usage is easy.

Add the dependency to your Podfile:

platform :ios
pod 'TWRProgressView'

Run pod install to install the dependencies.

Next, import the header file wherever you want to use the progress view:

#import "TWRProgressView.h"

The progress view can be set up either via Interface Builder (XIB and Storyboards) by just setting TWRProgressView as the class of any UIView…

@property (weak, nonatomic) IBOutlet TWRProgressView *progressView;
UIImage *someImage = [UIImage imageNamed:@"image.png"];
[_progressView setMaskingImage:someImage];

…or programmatically with a pretty sweet one-liner:

CGRect progressViewRect = CGRectMake(0, 0, 100, 100);
UIImage *someImage = [UIImage imageNamed:@"image.png"];
TWRProgressView *progressView = [TWRProgressView progressViewWithFrame:progressViewRect
[self.view addSubview:progressView];

TWRProgressView exposes the following methods that let the user customize color, progress and animation timing:

- (void)setProgress:(CGFloat)progress;
- (void)setProgress:(CGFloat)progress animated:(BOOL)animated;

- (void)setBackColor:(UIColor *)backColor;
- (void)setFrontColor:(UIColor *)frontColor;

- (void)setAnimationTime:(CGFloat)time;


Take a look at this video:

TWRProgressView Demo


TWRProgressView requires iOS 6.x or greater.


Usage is provided under the MIT License. See LICENSE for the full details.

Latest podspec

    "name": "TWRProgressView",
    "version": "0.1",
    "summary": "A custom progress view to be used with masking images.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Michelangelo Chasseur": "[email protected]"
    "social_media_url": "",
    "source": {
        "git": "",
        "tag": "0.1"
    "platforms": {
        "ios": "6.0"
    "source_files": "TWRProgressView/*.{h,m}",
    "frameworks": "QuartzCore",
    "requires_arc": true

Pin It on Pinterest

Share This