Edit

Share via


UIViewKeyframeAnimationOptions Enum

Definition

An enumeration whose values specify valid options for the AnimateKeyframes(Double, Double, UIViewKeyframeAnimationOptions, Action, UICompletionHandler) method.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIViewKeyframeAnimationOptions
type UIViewKeyframeAnimationOptions = 
Inheritance
UIViewKeyframeAnimationOptions
Attributes

Fields

Name Value Description
CalculationModeLinear 0

Use a simple linear calculation for interpolating between keyframe values.

LayoutSubviews 1

The option to layout subviews at commit time so they animate with their parent.

AllowUserInteraction 2

Whether the user can interact with the views while they are being animated.

BeginFromCurrentState 4

Whether to start an animation from the current setting of the in-flight animation. If not set, in-flight animations are allowed to finish before the new animation is started.

Repeat 8

Whether to repeat the animation indefinitely.

Autoreverse 16

Whether to run the animation in both directions. Must be combined with the Repeat option.

OverrideInheritedDuration 32

Whether to force an animation to use the original duration value specified when the animation was submitted. If not set, the animation inherits the remaining duration of the in-flight animation.

OverrideInheritedOptions 512

Whether to not inherit the animation type or any options.

CalculationModeDiscrete 1024

Does not interpolate keyframe values; jumps directly to each keyframe value.

CalculationModePaced 2048

Use a simple even-pacing algorithm to interpolate between keyframe values.

CalculationModeCubic 3072

Use a Catmull-Rom spline to interpolate between keyframe values. The Catmull-Rom parameter is not available for manipulation.

CalculationModeCubicPaced 4096

Use a cubic scheme to compute intermediate frames, ignoring timing properties. Timing parameters are implicitly calculated to give the animation a constant velocity.

Applies to