mdinacci/MDRadialProgress — pull request #13 by MarcAudefroy (2014-02-10 09:53:33+00:00)
Title: Delete unnecessary condition and fix a bug if progressCounter = 0

Hello Marco,

Congratulations, your control has evolved. :)

I corrected an unnecessary condition that causes a bug if the progressCounter property is equal to 0. First, if progressCounter is equal to 0, the condition "if (self.progressCounter > 0)" is equal to false which causes the radial to not be drawn. I delete the condition(property is an unsigned integer so self.progressCounter >= 0 is always true). I tested with your example project and this does not seem to bring regression.

A remark : Between line 205 and line 215. (in "self.progressCounter < self progressTotal" condition), it's not clear. Is you launch an analyze, you will see that endAngle is never read. In addition, your startAngle variable is equal to originAngle variable in method CGContextAddArc so I think that the arc will not be drawn. Maybe I didn't understand this part of code.

Marc