kaandedeoglu / KDCircularProgress

A circular progress view with gradients written in Swift
MIT License
1.21k stars 217 forks source link

How to continue the animation from the same place after pause? #50

Closed ArturSkachkov closed 8 years ago

ArturSkachkov commented 8 years ago

Pressing continue after a pause the animation, the animation track starts from the beginning of the circle. `progress.pauseAnimation() // PAUSE

// RESUME progress.animate(fromAngle: 0, toAngle: 360, duration: duretionExersise) { completed in if completed { print("RESUME") } }` how to fix to the track after a pause continued movement from the stopping point, not at starting position and continued to move at the same speed? Thank's

MarkHendriks commented 8 years ago

Try using: animateFromAngle progress.animateFromAngle(progress.angle, toAngle: 360, duration: duretionExersise)

ArturSkachkov commented 8 years ago

Value of type 'KDCircularProgress' has no member 'animateFromAngle' !?

ArturSkachkov commented 8 years ago

it works progress.animate(fromAngle: progress.angle, toAngle: 360, duration: duretionExersise)