Skip to content

Instantly share code, notes, and snippets.

@andresbrun
Created December 22, 2016 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andresbrun/77abd03356e20d96fbf5111a5d85ec88 to your computer and use it in GitHub Desktop.
Save andresbrun/77abd03356e20d96fbf5111a5d85ec88 to your computer and use it in GitHub Desktop.
Shows how to create an UIDynamicItemBehavior.
let dynamicBehaviour = UIDynamicItemBehavior(items: balls)
dynamicBehaviour.elasticity = 0.8
dynamicBehaviour.friction = 5.0
animator.addBehavior(dynamicBehaviour)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment