CardinalNow/iOS-CircleProgressView

How can animate ?

priore opened this issue · 3 comments

how can animate automatically with UIView:animateWithDuration:animations: ?
the example below is not working :

    [UIView animateWithDuration:5.0 animations:^{
        self.progressView.progress = 1.0;
    }];

I am also very interested in this one. Will have a look by myself in a couple of days when I get some time.
I guess one solution would be to animate the CALayer, but as I already told not quite sure when I'll find some time to have a look at this.

Hi priore and dehlen:

This is on our list to implement. Please feel free to pull request the behavior if you get something done before we do.

Thanks!

@dehlen & @priore I have pushed out an updated version that contains a new method/function that can be used to update progress with animation.

func setProgress(newProgress: Double, animated: Bool) {}

or

- (void)setProgress:(double)progress animated:(bool)animated;

The cocoapods has been updated to version 1.0.7