Latest 0.2.2
License MIT
Platforms ios 6.0, requires ARC

JWGCircleCounter Build Status

This control is a simple view that counts down a specified amount and alerts you on completion. You can see this live in Teleportante.

alt tag


This example uses Cocoapods, please install before running.

Navigate to DemoApp and run pod install in your terminal. Open DemoApp.xcworkspace and run the application.


Easiest installation is through Cocoapods. Add the following line to your Podfile:

pod `JWGCircleCounter`

and run pod install in your terminal.

Alternatively, you can manually add the files in the JWGCircleCounter directory to your project.


Start by creating a JWGCircleCounter of your own and add it to your view:

JWGCircleCounter *circleCounter = [[JWGCircleCounter alloc] initWithFrame:CGRectMake(0,0,40,40)];
[your_view addSubview:circleCounter];

After initialization, start the counter by:

[circleCounter startWithSeconds:5];

Once it’s been started, the counter can be managed with:

[circleCounter stop];
[circleCounter resume];

Customization & counter state

When the frame is set, the circle counter will expand to fit the bounds.

The following properties can be set:

@property (nonatomic, strong) UIColor *circleColor;
@property (nonatomic, strong) UIColor *circleBackgroundColor;
@property (nonatomic, assign) CGFloat circleTimerWidth;

You can inspect the state of a counter through a few readonly properties:

@property (nonatomic, assign, readonly) BOOL didStart;
@property (nonatomic, assign, readonly) BOOL isRunning;
@property (nonatomic, assign, readonly) BOOL didFinish;


Please write tests and ensure that existing tests pass too. Open a pull request when you’re ready.


  1. Move didStart, isRunning, and didFinish properties to an enum.
  2. Create a single "smart" method that can do start/pause/restart.


This was inspired by pppoe’s Circle-Counter-Down. Thank you!

Latest podspec

    "name": "JWGCircleCounter",
    "summary": "A handy counter & view that counts down in a circle view.",
    "version": "0.2.2",
    "authors": {
        "John Graham": "[email protected]"
    "homepage": "",
    "license": "MIT",
    "source": {
        "git": "",
        "tag": "0.2.2"
    "platforms": {
        "ios": "6.0"
    "requires_arc": true,
    "source_files": "JWGCircleCounter/*{h,m}"

Pin It on Pinterest

Share This