Latest 0.1.1
Homepage https://github.com/Assuner-Lee/GRProgressView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod "GRProgressView"

效果

演示.gif

接口

与UIProgressView接口基本一致,增加了更丰富的动画接口,可自由设置frame
#import <UIKit/UIKit.h>

@interface GRProgressView : UIImageView

@property (nonatomic, assign) float progress;                        // 0.0 .. 1.0, default is 0.0. values outside are pinned.
@property (nonatomic, strong, nullable) UIColor* progressTintColor;
@property (nonatomic, strong, nullable) UIColor* trackTintColor;
@property (nonatomic, strong, nullable) UIImage* progressImage;
@property (nonatomic, strong, nullable) UIImage* trackImage;
- (void)setProgress:(float)progress animateWithDuration:(double)duration delay:(double)delay
- (void)setProgress:(float)progress animateWithDuration:(double)duration;
- (void)setProgress:(float)progress animated:(BOOL)animated;

@end

水一篇 谢谢观看

Author

Assuner-Lee, [email protected]

License

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

Latest podspec

{
    "name": "GRProgressView",
    "version": "0.1.1",
    "summary": "A short description of GRProgressView.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/Assuner-Lee/GRProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Assuner-Lee": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Assuner-Lee/GRProgressView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GRProgressView/Classes/**/*"
}

Pin It on Pinterest

Share This