I have a spring animation curve specified using a UISpringTimingParameters with damping ratio and initial velocity, and I use it with a UIViewPropertyAnimator with its duration specified. Elsewhere in my app, I need to express the same animation using CASpringAnimation. But CASpringAnimation can't be initialized with just a damping ratio and initialVelocity - it requires all the different spring parameters and derives its settlingDuration from them.
Given a duration, damping ratio, and initial velocity vector, how do I create a CASpringAnimation?
I found the answer on a blog post. In short: