Giter VIP home page Giter VIP logo

uczprogressview's Introduction

UCZProgressView

CI Status Coverage Status Version License Platform

UCZProgressView is a circular progress indicator with cool animations for image loading.

This progress view is inspired by Michaël Villar's motion effect 08-Photo Loading.

  • Customizable indicator (line width, radius, and color)
  • Display a label with the current progress.
  • Customizable progress text label (color, size and font)
  • Customizable background view (blur style)
  • Fully support interface builder (IB_DESIGNABLE and IBInspectable)
  • Fully support UI_APPEARANCE_SELECTOR

       

Usage

self.progressView = [[UCZProgressView alloc] initWithFrame:self.view.bounds];
self.progressView.translatesAutoresizingMaskIntoConstraints = NO;
[self.view addSubview:self.progressView];

NSDictionary *views = NSDictionaryOfVariableBindings(_progressView);
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[_progressView]-0-|" options:0 metrics:nil views:views]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_progressView]-0-|" options:0 metrics:nil views:views]];

Show indeterminate state (default value is YES)

self.progressView.indeterminate = YES;

Show progress

self.progressView.progress = 0.7;

Show indicator text label

self.progressView.showsText = YES;

Indicator and indicator text color

self.progressView.showsText = YES;
self.progressView.tintColor = [UIColor blueColor];

Text color

self.progressView.showsText = YES;
self.progressView.tintColor = [UIColor blueColor];
self.progressView.textColor = [UIColor redColor];

Radius

self.progressView.radius = 40.0;

Line width

self.progressView.lineWidth = 6.0;

Blur background view

self.progressView.blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];

Animation did stop block

 progressView.animationDidStopBlock = ^{
    [self presentViewController:_photoGallery animated:YES completion:nil];
};

Requirements

iOS 5 or later

Installation

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

pod 'UCZProgressView'

Author

kishikawa katsumi, [email protected]

License

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

uczprogressview's People

Contributors

kishikawakatsumi avatar kittenyang avatar ryanfitz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.