Contents

addBoundary(withIdentifier:for:)

Adds a collision boundary, specified as a Bezier path, to the collision behavior.

Declaration

func addBoundary(withIdentifier identifier: any NSCopying, for bezierPath: UIBezierPath)

Parameters

  • identifier:

    An arbitrary identifier for the boundary you are adding.

  • bezierPath:

    An arbitrary Bezier path that specifies the collision boundary you are adding.

    The coordinate system and origin point for the path depend on how you’ve initialized the dynamic animator (that you’re adding the behavior to). See the overview in Uidynamicanimator for more information.

See Also

Configuring a collision behavior