Skip to content

kwylez/ZEMCircularProgressView

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ZEMCircleProgressView

Simple circle timer progress view that will animate the stroke of the view. You can manually start and stop the timer, as well as, provide a completion and cancel block.

Inspiration

FFCircularProgressView

Install

Just add the following files to your project

  • ZEMCircleProgressView.h/m
  • ZEMCircleProgressViewLayer.h/m

Usage

- (void)viewDidLoad {

  [super viewDidLoad];

  CGRect progressViewFrame = (CGRect){0, 0, 100, 100};

  self.circularProgressView = [[ZEMCircleProgressView alloc] initWithFrame:progressViewFrame totalUnitCount:10.f];
  
  self.circularProgressView.center = CGPointMake(CGRectGetMidX(self.view.bounds), CGRectGetMidY(self.view.bounds));
  
  self.circularProgressView.cancelledBlock = ^{
    NSLog(@"cancelled called");
  };
  
  self.circularProgressView.completedBlock = ^{
    NSLog(@"completed block called");
  };
  
  [self.view addSubview:self.circularProgressView];
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published