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
Replying to
Why do you care what language it's implemented in?
Replying to
I'm working on a animation lib - it's 1 small Swift file (short demo: vimeo.com/128069188) I was wondering ... (1/2)
3
Replying to
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
Ahhh, fitting given a duration. I basically just solved the differential equations for a damped harmonic oscillator given m=4.
1
1
Show replies

