mdinacci / MDRadialProgress

A custom UIView useful to represent progress in discrete steps.
Other
947 stars 159 forks source link

Eclipse effect issue. Center need to be drawn with radius minus 1 px #12

Closed romanr closed 10 years ago

romanr commented 10 years ago

Due to anti-aliasing, the center extends half pixel from under the progress. If you paint progress same color as background you can see the "eclipse" effect clearly:

progressp

mdinacci commented 10 years ago

Hi romanr,

thanks for reporting this issue. Could you provide some code to reproduce it ?

romanr commented 10 years ago

Sorry, I had to delete the code and implement workaround by drawing a circle directly with CGContextFillEllipseInRect

But it was something like this:

theme.centerColor = some color;
theme.incompletedColor = [UIColor whiteColor];

progressView.progressTotal and progressView.progressCounter is not set (null).

mdinacci commented 10 years ago

Hi romanr,

I managed to reproduce it. There's a simpler fix than redrawing the circle, which I'm going to push in a moment.

Thanks.