Latest 0.1.1
Homepage https://github.com/nosboost/KNCirclePercentView
License MIT
Platforms ios 8.0
Authors

A custom animated circle percent view

Example

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

Usage

  1. Add KNCirclePercentView using storyboard/nib/code
  2. Call Methods:
    
    /*
    * Draw Circle with specified radius
    *
    * @param percent percent of circle to display
    * @param duration animation duration
    * @param lineWidth witdth of circle
    * @param clockwise determine clockwise
    * @param lineCap line cap - kCALineCapButt, kCALineCapRound, kCALineCapSquare
    * @param fillColor color inside circle
    * @param strokeColor color of circle line
    * @param backgroundStrokeColor color of the stroke background
    * @param animatedColors colors array to animated. if this param is nil, stroke color will be used to draw circle
    */
  • (void)drawCircleWithPercent:(CGFloat)percent
    duration:(CGFloat)duration
    lineWidth:(CGFloat)lineWidth
    clockwise:(BOOL)clockwise
    lineCap:(NSString )lineCap
    fillColor:(UIColor
    )fillColor
    strokeColor:(UIColor )strokeColor
    backgroundStrokeColor:(UIColor
    )backgroundStrokeColor
    animatedColors:(NSArray *)colors;

  • (void)startAnimation;

Screenshot

iPhone

KNCirclePrecentView

Installation

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

pod 'KNCirclePrecentView'

License

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

Latest podspec

{
    "name": "KNCirclePrecentView",
    "version": "0.1.1",
    "summary": "A custom animated circle percent view.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/nosboost/KNCirclePercentView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Khoi Nguyen Nguyen": "Khoi Nguyen Nguyen"
    },
    "source": {
        "git": "https://github.com/nosboost/KNCirclePercentView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KNCirclePrecentView/Classes/**/*"
}

Pin It on Pinterest

Share This