Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.13 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.13 KB

BLLoader

Simple, easy to use and customisable loading indicator (loader) for iOS applications.

Screenshots

Example

Usage

Basic usage

Add BLLoader class into your project.

#import "ViewController.h"
#import "BLLoader.h"

@interface ViewController()

@property (weak, nonatomic) IBOutlet BLLoader *loader;

@end
@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Set custom lineWidth or don't set to use default lineWidth
    _loader.lineWidth = 10.0;
    
    // Set custom color or don't set to use default color 
    _loader.color = [UIColor grayColor];
    
    [_loader startAnimation];
}

- (void)doSomething
{    
    [_loader startAnimation];
    [XYZService fetchSomeData:^(){
        [_loader stopAnimation];
    }];
}

Requirements

  • iOS 7 or higher
  • Automatic Reference Counting (ARC)

Author

License

BLMultiColorLoader is released under the MIT license. See the LICENSE file for more info.