I want to animate drawing an arc onscreen but I want it to have the spring effect found in iOS 7's UIView animate... usingSpringDamping:
API. I know I can use Core Animation directly by creating a CABasicAnimation
but then I lose out on the nice spring effect, and the built-in timing functions stop at EaseOut
, which isn't really what I want. Ideally the arc would draw to a target angle, overshoot it, then bounce back and forth until it settled on the target.
Is there a way to do this without writing my own timing function / subclassing CAAnimation
?
Try to use CASpringAnimation
, it has the same API as UIView Spring Animation.