collisionBehavior(_:endedContactFor:withBoundaryIdentifier:)
Called when a collision between a dynamic item and a boundary has ended.
Declaration
optional func collisionBehavior(_ behavior: UICollisionBehavior, endedContactFor item: any UIDynamicItem, withBoundaryIdentifier identifier: (any NSCopying)?)Parameters
- behavior:
The collision behavior that owns the dynamic item that has ended contact.
- item:
The dynamic item that collided.
- identifier:
The identifier of the boundary that the dynamic item collided with.