Giter Site home page Giter Site logo

circleprogressbar's People

Contributors

antigp avatar eclair avatar hildert avatar mrchens avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circleprogressbar's Issues

Duration

Hi,

Thanks for writing this awesome library. I had a question about the docs - you mention this method:

[_circleProgressBar setProgress:(CGFloat)progress animated:(BOOL)animated duration:(CGFloat)duration];

But it appears its not in the library. Turns out it is exactly what I need, any chance you have it or have plans to implement?

Thanks!

CircleProgressBar doesn't update progress value when animated change method is called very often

Anyone know why it doesn't working in block? I tried to show this CircleProgressBar when user tapped on download button. here is my code :

  • (IBAction)DownloadButtonTapped:(id)sender {

    [VideoDownloaderHelper downloadVideoFromURL:@"https://fbcdn-video-n-a.akamaihd.net/hvideo-ak-xap1/v/t43.1792-2/12326419_567683906728653_1549711566_n.mp4?efg=eyJybHIiOjE1MDAsInJsYSI6MTc5OSwidmVuY29kZV90YWciOiJzdmVfaGQifQ%3D%3D&rl=1500&vabr=861&oh=39b5e0b02bb7873b2f1f7e3ec6e90d67&oe=566AD689&gda=1449842290_0e0e2f200458c7a7aff7f1e7acaea79e" withProgress:^(CGFloat progress) {
    NSLog(@"total progress : %f", progress);

    // [_circleProgressBar setProgress:progress animated:YES];

    [_circleProgressBar setProgress:(_circleProgressBar.progress + progress) animated:YES];
    

    } completion:^(NSURL *filePath) {
    NSLog(@"filePath :%@", filePath);
    } onError:^(NSError *error) {
    NSLog(@"error download video: %@", error);
    }];

}

Anti-clock wise progress

Thanks for such a wonderful and highly customizable control.. :) I had a query, how can we implement anti-clockwise progress using this control?

Start angle defaults to 90

It seems than the startAngle defaults to 90 degrees, and you have to set startAngle = -90 to move it to 0.

screen shot 2016-08-02 at 08 53 43

Error with hint text generation block example

circleProgressBar.setHintTextGenerationBlock { (progress) -> String? in
    return String.init(format: "%.0f / 255", arguments: [progress * 255])
}

Causes the following error:
Cannot convert value of type '([CVarArg]) -> String?' to expected argument type 'StringGenerationBlock'!

Set line cap

Hey this library is great

I was trying to customize drawProgressBar: with CGContextSetLineCap(context, kCGLineCapRound); but there was no change.. any thoughts?

Progress Duration is Wrong

Try doing setProgress: 1 duration:30.0f, the bar will only get to about 90% in the demo app (also experiences the same in my app). Is there a fix for this?

Transparent hintViewBackgroundColor

If I set transparent (default) background color to hintViewBackgroundColor transparent bacground color I got black background.
How can I set transparent BackgroundColor to circle progress bar?

Background is black no matter what

Hi, awesome control, thanks for sharing. I am having an issue that I can't figure out looking at the source code. The View in IB has a white background color, but for some reason, the control is drawn with a black background no mater what I do. Even if I set the background color of the view in code to something else, it still shoes black. Do you have any clues for me? I"m happy to keep investigating, but if you have some ideas I'd be happy to hear them. Thank you!

_circleProgressBar.progressBarWidth = 15;
_circleProgressBar.startAngle = 270.0;
_circleProgressBar.hintViewBackgroundColor = [UIColor whiteColor];
_circleProgressBar.backgroundColor = [UIColor whiteColor];
_circleProgressBar.progressBarTrackColor = [UIColor appHeaderBackgroundNormalColor];
_circleProgressBar.progressBarProgressColor = [UIColor appNormalColor];
_circleProgressBar.hintTextColor = [UIColor appNormalColor];
_circleProgressBar.hintTextFont = [UIFont fontForAppWithType:Book andSize:15];
_circleProgressBar.hintHidden = NO;

screenshot 2015-04-29 23 41 54

IB_DESIGNABLE for CircleProgressBar Not Working

The IB_DESIGNABLE for CircleProgressBar not working. I am using XCode 7 and Swift 2.0. I did get it to work when adding IBInspectable to each property. See below:

`/// @brief Width of Progress Bar
@Property (nonatomic) IBInspectable CGFloat progressBarWidth;
/// @brief Progress color in Progress Bar
@Property (nonatomic) IBInspectable UIColor *progressBarProgressColor;
/// @brief Track color in Progress Bar
@Property (nonatomic) IBInspectable UIColor *progressBarTrackColor;
/// @brief Start Angle
@Property (nonatomic) IBInspectable CGFloat startAngle;

/// @brief Whether HintView should be shown or not
@Property (nonatomic) IBInspectable BOOL hintHidden;
/// @brief Inner spacing between Progress Bar and Hint View
@Property (nonatomic) IBInspectable CGFloat hintViewSpacing;
/// @brief Hint View Background Color
@Property (nonatomic) IBInspectable UIColor *hintViewBackgroundColor;
/// @brief Hint View Text Font
@Property (nonatomic) IBInspectable UIFont *hintTextFont;
/// @brief Hint View Text Color
@Property (nonatomic) IBInspectable UIColor *hintTextColor;`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.