DACircularProgress
DACircularProgress copied to clipboard
can I use this DACircularProgress with three color gradient
Can I use this DACircularProgress with three color gradient?i want DACircularProgress can support more color to fill the Progress;but i did not know how to do.
I have just add some gradient for fill progress, you can see at https://github.com/cuongtv51/DACircularProgress/tree/gradient_branch it not work with 'roundedCorners' property, i will fix it later, Hope this help you.
but i need roundedCorners. I try to use BezierPath to draw a image like this: CGContextSaveGState(ctx); UIBezierPath* aPath = [UIBezierPath bezierPathWithArcCenter:center radius:outerRadius startAngle:startAngle endAngle:endAngle clockwise:YES]; aPath.lineWidth = 20.f; aPath.lineCapStyle = kCGLineCapRound; aPath.lineJoinStyle = kCGLineCapRound; [aPath addClip];
// //Draw the image, clipped to the path: //CGContextDrawImage(ctx, self.bounds, [[UIImage imageNamed:@"ic_progress_coin"] CGImage]); [[UIImage imageNamed:@"ic_progress_coin"] drawInRect:self.bounds]; CGContextRestoreGState(ctx);
but no roundedCorners effect
Hello! Any changes with rounded corners? Bcs its 8th July but no any updates.