Protocol

UIDynamicItem

A set of methods that can make a custom object eligible to participate in UIKit Dynamics.

Declaration

@protocol UIDynamicItem

Overview

Starting in iOS 7, the UIView and UICollectionViewLayoutAttributes classes implement this protocol.

Topics

Participating in Dynamic Animation

bounds

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

Required.

center

The center point of the dynamic item.

Required.

transform

The rotation of the dynamic item.

Required.

collisionBoundsType

The type of collision bounds associated with the item.

collisionBoundingPath

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

Constants

UIDynamicItemCollisionBoundsType

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

See Also

Dynamic Items

UIDynamicItemBehavior

A base dynamic animation configuration for one or more dynamic items.

UIDynamicItemGroup

A dynamic item that comprises multiple other dynamic items.