Skip to content

manlycode/MCCircularProgressView

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published