UIView.AddMotionEffect(UIMotionEffect) Method

Definition

Adds the specified motion effect to the view.

[Foundation.Export("addMotionEffect:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddMotionEffect (UIKit.UIMotionEffect effect);
abstract member AddMotionEffect : UIKit.UIMotionEffect -> unit
override this.AddMotionEffect : UIKit.UIMotionEffect -> unit

Parameters

effect
UIMotionEffect

Motion effect to add to the view.

Attributes

Remarks

This method, when called using the present UIView animation context, animates the transition to the specified motion effect's values.

Applies to