Contents

addMotionEffect(_:)

Begins applying a motion effect to the view.

Declaration

func addMotionEffect(_ effect: UIMotionEffect)

Parameters

  • effect:

    The motion effect.

Discussion

The system animates the transition to the motion effect’s values using the present UIView animation context. The motion effect’s keyPath/value pairs are applied to the view’s presentation layer.

See Also

Using motion effects