Skip to content

Instantly share code, notes, and snippets.

@michaelevensen
Created August 8, 2023 12:28
Show Gist options
  • Save michaelevensen/9c4cfde048e0781f60156d41474785e3 to your computer and use it in GitHub Desktop.
Save michaelevensen/9c4cfde048e0781f60156d41474785e3 to your computer and use it in GitHub Desktop.
A collection of nice spring values.
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