Latest 0.1.0
Homepage https://github.com/orientemario/MOLoaderView
License MIT
Platforms ios 8.0, requires ARC
Dependencies pop
Frameworks UIKit, Foundation
Authors

Version
License
Platform

Preview

ExtraLight Dark

Installation

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

pod "MOLoaderView"

Requirements

This library uses POP animation engine by Facebook and UIBlurEffect available from iOS 8.0

Example Usage

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

Library Usage

Import the library

#import "MOLoaderView.h"

Initialize your loader using the blurred init

MOLoaderView *loader = [[MOLoaderView alloc] initWithRadius:100 strokeWidth:5.0
                       blurEffectStyle:0 strokeColor:[UIColor whiteColor]
                       showPercentage:YES withSymbol:YES
                       didCompleteBlock:^{
                           NSLog(@"COMPLETE!");
                       }];

Or the custom init to choose the combination of colors you like

MOLoaderView *loader = [[MOLoaderView alloc] initWithRadius:100 strokeWidth:5.0
                       backgroundCircleColor:[UIColor colorWithRed:0.435 green:0.443 blue:0.475 alpha:1.000]
                       circleColor:[UIColor colorWithRed:0.122 green:0.129 blue:0.141 alpha:1.000]
                       strokeColor:TINT_COLOR
                       showPercentage:YES withSymbol:NO
                       didCompleteBlock:^{
                            NSLog(@"COMPLETE!");
                       }];

Therefore, you can show the loader using

[loader showAtPoint:CGPointMake(self.view.center.x, self.view.frame.size.height/2) withZoomOut:NO];
[self.view addSubview:loader];

Increment the progress calling

[loader animateWithProgress:/*currentProgress*/];

And, once completed, hide it

[loader hide];

Author

Mario Oriente, [email protected]

License

MOLoaderView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MOLoaderView",
    "version": "0.1.0",
    "summary": "A very simple loader view with progress indicator and blur effect.",
    "description": "You can customize the loader either showing percentage and % symbolnn",
    "homepage": "https://github.com/orientemario/MOLoaderView",
    "screenshots": [
        "https://cloud.githubusercontent.com/assets/7912774/5070655/94856ca2-6e69-11e4-9a1d-ca2694a74312.gif",
        "https://cloud.githubusercontent.com/assets/7912774/5070667/a8dc388e-6e69-11e4-8829-edeb0fd06f42.gif"
    ],
    "license": "MIT",
    "authors": {
        "Mario Oriente": "[email protected]"
    },
    "source": {
        "git": "https://github.com/orientemario/MOLoaderView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/MOLoaderView.{h,m}",
    "resource_bundles": {
        "MOLoaderView": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Classes/Pods/*.{h,m}",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "dependencies": {
        "pop": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This