Latest 0.1.0
Homepage https://github.com/ripperhe/ZYProgressView
License MIT
Platforms ios 8.0
Authors

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.

Latest podspec

{
    "name": "ZYProgressView",
    "version": "0.1.0",
    "summary": "A simple progress view.",
    "homepage": "https://github.com/ripperhe/ZYProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ripper": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ripperhe/ZYProgressView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZYProgressView/**/*"
}

Pin It on Pinterest

Share This