Created
December 22, 2016 19:18
-
-
Save andresbrun/77abd03356e20d96fbf5111a5d85ec88 to your computer and use it in GitHub Desktop.
Shows how to create an UIDynamicItemBehavior.
This file contains hidden or 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
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