Skip to content

Commit

Permalink
Fix progress flashing in setprogress:animated:YES.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Davidovich committed Jun 3, 2015
1 parent b28da9f commit e887eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UAProgressView.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ - (void)animateToProgress:(CGFloat)progress {

// Add shape animation
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];
animation.removedOnCompletion = NO;
animation.fillMode = kCAFillModeForwards;
animation.duration = self.animationDuration;
animation.fromValue = @(self.progress);
animation.toValue = @(progress);
Expand Down

0 comments on commit e887eea

Please sign in to comment.