BLMultiColorLoader 0.1.6

BLMultiColorLoader 0.1.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2016

Maintained by Herrick Wolber.




  • By
  • Babulal Poonia and Contribution - Herrick Wolber

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

Screenshots

Demo

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

BLMultiColorLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "BLMultiColorLoader"

Basic usage

Add BLMultiColorLoader class ("BLMultiColorLoader.h" and "BLMultiColorLoader.m") into your project.

#import <UIKit/UIKit.h>
#import "BLMultiColorLoader.h"

@interface ViewController : UIViewController

@property (weak, nonatomic) IBOutlet BLMultiColorLoader *multiColorLoader;

@end
@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];

// Customize the line width
_multiColorLoader.lineWidth = 2.0;

// Pass the custom colors array
_multiColorLoader.colorArray = [NSArray arrayWithObjects:[UIColor redColor],
[UIColor purpleColor],
[UIColor greenColor],
[UIColor blueColor], nil];
[_multiColorLoader startAnimation];

}

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

Requirements

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

Author

Contribution

License

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