would you recommend any open source code to create spring layer animations to exactly match the spring animation in UIKit?
Conversation
Use Pop: github.com/facebook/pop
Can get UIKit's parameters by pausing w/ debugger during animation and po-ing the CASpringAnim.
1
6
i was looking for something in swift and lightweight to embed in my own lib and rumor has it you knew about springs :)
1
1
Why do you care what language it's implemented in?
2
1
how to do the spring code that fits the animation in the given total duration. Though you might know an existing lib (2/2)
1
Replying to
Ahhh, fitting given a duration. I basically just solved the differential equations for a damped harmonic oscillator given m=4.

