collisionBehavior(_:endedContactFor:with:)
Called when a collision between two dynamic items has ended.
Declaration
optional func collisionBehavior(_ behavior: UICollisionBehavior, endedContactFor item1: any UIDynamicItem, with item2: any UIDynamicItem)Parameters
- behavior:
The collision behavior that owns the dynamic items that collided.
- item1:
The first of the two dynamic items participating in the collision.
- item2:
The second of the two dynamic items participating in the collision.