Protocol

UIDynamic​Item

To make a custom object eligible to participate in UIKit Dynamics, adopt the UIDynamic​Item protocol in the object’s class.

Overview

Starting in iOS 7, the UIView and UICollection​View​Layout​Attributes classes implement this protocol.

Symbols

Participating in Dynamic Animation

var bounds:​ CGRect

Called when a dynamic animator needs the bounds of the dynamic item.

var center:​ CGPoint

The center point of the dynamic item.

var transform:​ CGAffine​Transform

The rotation of the dynamic item.

var collision​Bounds​Type:​ UIDynamic​Item​Collision​Bounds​Type

The type of collision bounds associated with the item.

var collision​Bounding​Path:​ UIBezier​Path

The path-based shape to use for the collision bounds.

Constants

UIDynamic​Item​Collision​Bounds​Type

Constants that indicate the shape of the item’s collision bounds.