Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.22 KB

File metadata and controls

49 lines (33 loc) · 1.22 KB

MCCircularProgressView

A scalable progress view that fits in a tiny amount of space.

Installation

CocoaPods

pod 'MCCircularProgressView', '~> 1.0.4'

How to use

Interface Builder

Within Interface Builder, set a UIView's custom class to "MCCircularProgressView". The indicator will automatically scale to the size of the smallest dimension of the UIView.

Programmatically

Include the class:

#include <MCCircularProgressView.h>

Initialization

Initialize MCCircularProgressView and add it to the subView like you would any UIView:

MCCircularProgressView *progressView = [[MCCircularProgressView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
[self.view addSubview:progressView];

Customization

You can change the color of the indicator by specifying the circleColor property:

progressView.circleColor = [UIColor redColor];

Screenshots

MCCircularProgressView with some progress MCCircularProgressView with more progress MCCircularProgressView with even more progress