Contents

collisionBehavior(_:beganContactFor:withBoundaryIdentifier:at:)

Called when a collision, between a dynamic item and a collision boundary, has begun.

Declaration

optional func collisionBehavior(_ behavior: UICollisionBehavior, beganContactFor item: any UIDynamicItem, withBoundaryIdentifier identifier: (any NSCopying)?, at p: CGPoint)

Parameters

  • behavior:

    The collision behavior that owns the dynamic item that has started contact with a boundary.

  • item:

    The dynamic item that has started contact with a boundary.

  • identifier:

    The identifier of the boundary that the dynamic item has started contact with.

  • p:

    The collision point on the boundary.

See Also

Responding to UIKit Dynamics collisions