GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - carantes/CircularProgressControl: Circular Progress Control using CAShapeLayer

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
CircularProgressControl.xcodeproj
CircularProgressControl.xcodeproj
 
 
CircularProgressControl
CircularProgressControl
 
 
CircularProgressControlTests
CircularProgressControlTests
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

CircularProgressControl


This is a simple and adaptive Circular Progress View.

It basically consists of two CAShapeLayers to draw a static and a animated circle, and a progress label with two lines, the first to describe a timer and the second for a state.

Screenshot

Features

  • automatically update the circle progress when the elapsed time is set
  • autolayout compatible
  • autoformat the timer label
  • tint color of progress layer and label
  • state description can be changed

Installation

Grab the files in View/CircularProgressView and put it in your project. The code uses ARC, so make sure to turn that on for the files if you're not already using ARC.

Usage

Subclass CircularProgressView or manually create a new instance using alloc/initWithFrame:

CircleProgressView *progressView = [[CircleProgressView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];

Configure the parameters before set the elapsed time:

[_circleProgressView setTimeLimit:3600*8];
[_circleProgressView setStatus:NSLocalizedString(@"circle-progress-view.status-not-started", nil)];
[_circleProgressView setTintColor:[UIColor whiteColor]];
[_circleProgressView setElapsedTime:0];

Small Print

License

CircularProgressView is released under the MIT license.

Author

Carlos Arantes (@carantes)

Bitdeli Badge

About

Circular Progress Control using CAShapeLayer

Resources

Readme
MIT license
Activity

Stars

320 stars

Watchers

8 watching

Forks

38 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.