Created
August 8, 2023 12:28
-
-
Save michaelevensen/9c4cfde048e0781f60156d41474785e3 to your computer and use it in GitHub Desktop.
A collection of nice spring values.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
withAnimation(.interactiveSpring(response: 0.15, dampingFraction: 0.45, blendDuration: 0.5)) { | |
// | |
} | |
withAnimation(.interpolatingSpring( | |
mass: 1, | |
stiffness: 200, | |
damping: 20, | |
initialVelocity: 20)) { | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment