ZYProgressView 0.1.1

ZYProgressView 0.1.1

Maintained by ripper.



  • By
  • ripper

ZYProgressView

Version License Platform

Snapshot

Example

To run the example project, clone the repo, and run directory.

Requirements

iOS 8.0 or later

Installation

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

pod "ZYProgressView"

Useage

Line

初始化

ZYLineProgressView *progressView = [[ZYLineProgressView alloc] initWithFrame:CGRectMake(20, 150, 200, 6)];

更新进度

progressView.progress = 0.8;

更新配置

[progressView updateConfig:^(ZYLineProgressViewConfig *config) {
	config.isShowDot = YES;
}];

Circle

初始化

ZYCircleProgressView *progressView = [[ZYCircleProgressView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];

更新进度

progressView.progress = 0.3;

更新配置

[progressView updateConfig:^(ZYCircleProgressViewConfig *config) {
	config.lineWidth = 3;
	config.lineCap = kCALineCapSquare;
	config.startAngle = - (M_PI + M_PI_4);
	config.endAngle = M_PI_4;
}];

Author

ripper, [email protected]

License

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