Contents

removeBehavior(_:)

Removes a specified dynamic behavior from a dynamic animator.

Declaration

func removeBehavior(_ behavior: UIDynamicBehavior)

Parameters

  • behavior:

    The dynamic behavior instance that you want to remove from the animator.

    The dynamic animator ignores your use of this method if you:

    • Provide a nil value

    • Provide a dynamic behavior instance that is not part of the animator’s behavior hierarchy

See Also

Initializing and managing a dynamic animator