Instance Property


The delegate object that you want to respond to collisions for the collision behavior.


weak var collisionDelegate: UICollisionBehaviorDelegate? { get set }

See Also

Customizing the Collision Behavior

protocol UICollisionBehaviorDelegate

To respond to UIKit dynamic item collisions, configure a custom class to adopt the UICollisionBehaviorDelegate protocol. Then, in a collision behavior (an instance of the UICollisionBehavior class), set the delegate to be an instance of your custom class.