DACircularProgress icon indicating copy to clipboard operation
DACircularProgress copied to clipboard

can I use this DACircularProgress with three color gradient

Open jaysonjh opened this issue 9 years ago • 3 comments

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. home_mid_bg

jaysonjh avatar May 12 '15 03:05 jaysonjh

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.

cuongtv51 avatar May 16 '15 08:05 cuongtv51

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

jaysonjh avatar May 21 '15 00:05 jaysonjh

Hello! Any changes with rounded corners? Bcs its 8th July but no any updates.

Sergozh avatar Jul 08 '15 10:07 Sergozh