I really like how simple it is to make bouncy animations with UIKit since the addition of UIView’s
animateWithDuration:delay:options:usingSpringWithDamping:initialSpringVelocity: in iOS 7. I looked for something similar in SpriteKit but couldn’t find anything.
You could concatenate a few actions with the right duration and timingMode (or timingFunction since iOS 8), but it’s very unconvenient and hard to get good results this way. My understanding is that Apple wants you to use SKAction’s
customActionWithDuration:actionBlock: for such cases, but you still have to do the maths in your action block…
I hope something easier to use will be added to SpriteKit in a future release, but in the meantime I made a small set of extensions for SKAction that implement spring animations.
The code is available on GitHub, feel free to use it: https://github.com/ataugeron/SpriteKit-Spring