maxkonovalov / MKRingProgressView

⭕️ Ring progress view similar to Activity app on Apple Watch
MIT License
1.57k stars 136 forks source link

Inconsistent speed #33

Closed thijsheijden closed 6 years ago

thijsheijden commented 6 years ago

Hey! Im not sure this is supposed to be like this but when I find the speed at which the ring moves very inconsistent. If I put it on a timer of 60 seconds the first few seconds it will move very fast, but then slow down and the last 20 seconds it will be moving extremely slow. Is there any way I could make the animation of the ring one consistent speed?

maxkonovalov commented 6 years ago

Hi @thijsheijden, you need to set the animation curve to linear, like this:

CATransaction.setAnimationTimingFunction(CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear))

Please see the related issue #32 for more information.

thijsheijden commented 6 years ago

Ah thanks!