Adding dynamism with UIKit Dynamics
Most apps implement simple animations, such as the ones you've seen so far in this chapter. However, some animations might need a little more realism – this is what UIKit Dynamics is for.
With UIKit Dynamics, you can place one or more views in a scene that uses a physics engine to apply certain forces to the views it contains. For instance, you can apply gravity to a particular object, causing it to fall off the screen. You can even have objects bumping into each other, and if you assign a mass to your views, this mass is taken into account when two objects crash into each other.
When you apply a certain force to an object with very little mass, it will be displaced more than an object with a lot of mass, just like you would expect in the real world.
For this, we're going to create another little project away from our current app, so we can perform some physics experiments.
So, let's get started by creating a...