Contents

addBehavior(_:)

Adds a dynamic behavior to a dynamic animator.

Declaration

func addBehavior(_ behavior: UIDynamicBehavior)

Parameters

  • behavior:

    The dynamic behavior instance you are adding.

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

    • Provide a nil value

    • Provide a behavior instance that you’ve already added to the animator at the same level in the behavior hierarchy

See Also

Initializing and managing a dynamic animator