www.hackingwithswift.com
Controlling views using the accelerometer – Hacking with Swift+
Reading device motion and orientation is a fast and slightly magical way to incorporate the real world into your apps, and can do a huge amount to add a little spark of delight to your UI. In this art...