Upravit

Sdílet prostřednictvím


UIViewAnimationOptions Enum

Definition

An enumeration indicating animation options.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIViewAnimationOptions
type UIViewAnimationOptions = 
Inheritance
UIViewAnimationOptions
Attributes

Fields

Name Value Description
CurveEaseInOut 0

Uses an EasyInOut animation.

PreferredFramesPerSecondDefault 0

Constant that indicates that the default frame rate is preferred for animations.

TransitionNone 0

No transition.

LayoutSubviews 1

Lays out subviews at commit time so they are animated along with their parent.

AllowUserInteraction 2

This flag instructs the system to keep sending input events to the view during the animation. By default input events are disabled when an animation is taking place.

BeginFromCurrentState 4

Starts the animation from the current view state.

Repeat 8

If set, the animation will repeat.

Autoreverse 16

If set, the animation will automatically reverse once it completes.

OverrideInheritedDuration 32

If set, the animation will use the original duration value, rather than the remaining duration of the in-flight animation.

OverrideInheritedCurve 64

If set, the animation will use the original curve specified when the animation was submitted, not the curve of the in-flight animation.

AllowAnimatedContent 128

If set, views are animated by changing their properties and redrawing. If not set, the views are animated using a snapshot image.

ShowHideTransitionViews 256

If set, views are hidden and shown (not removed or added) during transition. Both views must already be in the parent view's hierarchy.

OverrideInheritedOptions 512

The option to not inherit the animation type or any other options.

CurveEaseIn 65536

Uses an EaseIn animation.

CurveEaseOut 131072

Uses an EaseOut animation.

CurveLinear 196608

Uses a linear animation.

TransitionFlipFromLeft 1048576

A transition that flips a view around its vertical axis from left to right. The left side comes forward and the right moves backward.

TransitionFlipFromRight 2097152

A transition that flips a view around its vertical axis from right to left. The right side comes forward and the left moves backward.

TransitionCurlUp 3145728

A transition that curls a view up from the bottom.

TransitionCurlDown 4194304

A transition that curls a view down from the top.

TransitionCrossDissolve 5242880

A transition that dissolves between views.

TransitionFlipFromTop 6291456

A transition that flips a view around its horizontal axis from top to bottom. The top moves forward and the bottom moves back.

TransitionFlipFromBottom 7340032

A transition that flips a view around its horizontal axis from bottom to top. The bottom moves forward and the top moves back.

PreferredFramesPerSecond60 50331648

Constant that indicates that 60 frames per second are preferred for animations.

PreferredFramesPerSecond30 117440512

Constant that indicates that 30 frames per second are preferred for animations.

Applies to