I use
progress!.animate(fromAngle: 0, toAngle: 360, duration: 10) { completed in
if completed {
print("completed")
} else {
print("animation stopped, was interrupted")
}
}
Then I want to stop animate I try call
progress?.stopAnimation()
It's work. But a few moment in console print completed also.
How I fix it ?
Thank you.