We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661a46a commit 22a281eCopy full SHA for 22a281e
src/Components/MRCircularProgressView.m
@@ -231,6 +231,11 @@ - (void)animateToProgress:(float)progress {
231
// Add timer to update valueLabel
232
_valueLabelProgressPercentDifference = (progress - self.progress) * 100;
233
CFTimeInterval timerInterval = self.animationDuration / ABS(_valueLabelProgressPercentDifference);
234
+
235
+ if (isnan(timerInterval)) {
236
+ timerInterval = self.animationDuration;
237
+ }
238
239
self.valueLabelUpdateTimer = [NSTimer scheduledTimerWithTimeInterval:timerInterval
240
target:self
241
selector:@selector(onValueLabelUpdateTimer:)
0 commit comments