UIView.AnimationsEnabled Property

Definition

Specifies whether animations are displayed or not.

public static bool AnimationsEnabled { [Foundation.Export("areAnimationsEnabled")] get; [Foundation.Export("setAnimationsEnabled:")] set; }
member this.AnimationsEnabled : bool with get, set

Property Value

The default value is true.

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Whether this is true or false, the code inside animation blocks will execute. A false value simply means the animation does not display.

Setting this value during an existing animation will not modify that animation's display.

Applies to

See also

  • <xref:UIKit.UIView.PerformWithoutAnimation>