Skip to content

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

License

Notifications You must be signed in to change notification settings

heke006/BLMultiColorLoader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLMultiColorLoader

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

Screenshots

Demo

Usage

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

License

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%