Instance Method

removeMotionEffect(_:)

Stops applying a motion effect to the view.

Declaration

func removeMotionEffect(_ effect: UIMotionEffect)

Parameters

effect

The motion effect.

Discussion

Any affected presentation values animate to their post-removal values using the present UIView animation context.

See Also

Using Motion Effects

func addMotionEffect(UIMotionEffect)

Begins applying a motion effect to the view.

var motionEffects: [UIMotionEffect]

The array of motion effects for the view.