eclair / circleprogressbar Goto Github PK
View Code? Open in Web Editor NEWiOS Circle Progress Bar
License: MIT License
iOS Circle Progress Bar
License: MIT License
Track should be like a pipe like appearance.. Any idea to enhance with this code.
Can I have an action click event on the circle progress?
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!
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);
}];
}
Hi,
Very nice component. I'm wondering if it could be possible to add a setHintAttributedStringGenerationBlock to have attributed string for the hint instead of just plain text.
Regards,
Thanks for such a wonderful and highly customizable control.. :) I had a query, how can we implement anti-clockwise progress using this control?
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'!
Hey this library is great
I was trying to customize drawProgressBar:
with CGContextSetLineCap(context, kCGLineCapRound);
but there was no change.. any thoughts?
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?
Hi,
How to create two lines inside circle progress Bar.
For Example first line contain one string and other lines contain other string.
Is it possible?
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?
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;
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;`
I don't see any completion handlers that we can use when the animation completes. How to achieve that? Is there a method I'm missing ?
Make Animation time customizable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.