StickyCorners: Using UIFieldBehavior and other UIDynamicBehaviors

Last Revision:
Version 1.2, 2016-09-14
Updated to Swift 3
(Full Revision History)
Build Requirements:
Xcode 8.0 or later; iOS 9.0 SDK or later
Runtime Requirements:
iOS 9.0 or later

StickyCorners showcases the usage of UIFieldBehavior using UIKit Dynamics.

The application positions a red box in one of the screen corners. The box can be manipulated by panning with a finger. Additionally, the box can be thrown towards different corners with momentum gained during panning. The box also collides with the edges of the screen.