StickyCorners: Using UIFieldBehavior and other UIDynamicBehaviors
Last Revision: | |
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.
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-09-14