Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kishikawakatsumi/UCZProgressView
UCZProgressView is a circular progress indicator for image loading.
https://github.com/kishikawakatsumi/UCZProgressView
Last synced: 3 months ago
JSON representation
UCZProgressView is a circular progress indicator for image loading.
- Host: GitHub
- URL: https://github.com/kishikawakatsumi/UCZProgressView
- Owner: kishikawakatsumi
- License: mit
- Created: 2014-12-14T07:52:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T09:29:20.000Z (about 4 years ago)
- Last Synced: 2024-07-05T08:44:38.441Z (4 months ago)
- Language: Objective-C
- Size: 13.3 MB
- Stars: 479
- Watchers: 17
- Forks: 79
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# UCZProgressView
[![CI Status](http://img.shields.io/travis/kishikawakatsumi/UCZProgressView.svg?style=flat)](https://travis-ci.org/kishikawakatsumi/UCZProgressView)
[![Coverage Status](https://img.shields.io/coveralls/kishikawakatsumi/UCZProgressView.svg?style=flat)](https://coveralls.io/r/kishikawakatsumi/UCZProgressView?branch=master)
[![Version](https://img.shields.io/cocoapods/v/UCZProgressView.svg?style=flat)](http://cocoadocs.org/docsets/UCZProgressView)
[![License](https://img.shields.io/cocoapods/l/UCZProgressView.svg?style=flat)](http://cocoadocs.org/docsets/UCZProgressView)
[![Platform](https://img.shields.io/cocoapods/p/UCZProgressView.svg?style=flat)](http://cocoadocs.org/docsets/UCZProgressView)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](http://www.michaelvillar.com/motion).
- 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
```objc
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`)
```objc
self.progressView.indeterminate = YES;
```### Show progress
```objc
self.progressView.progress = 0.7;
```### Show indicator text label
```objc
self.progressView.showsText = YES;
```### Indicator and indicator text color
```objc
self.progressView.showsText = YES;
self.progressView.tintColor = [UIColor blueColor];
```### Text color
```objc
self.progressView.showsText = YES;
self.progressView.tintColor = [UIColor blueColor];
self.progressView.textColor = [UIColor redColor];
```### Radius
```objc
self.progressView.radius = 40.0;
```### Line width
```objc
self.progressView.lineWidth = 6.0;
```### Blur background view
```objc
self.progressView.blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
```### Animation did stop block
```objc
progressView.animationDidStopBlock = ^{
[self presentViewController:_photoGallery animated:YES completion:nil];
};
```## Requirements
iOS 5 or later
## Installation
UCZProgressView is available through [CocoaPods](http://cocoapods.org). 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.