<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/KeyframeAnimationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIViewKeyframeAnimationOptions"
  },
  "title" : "UIView.KeyframeAnimationOptions"
}
-->

# UIView.KeyframeAnimationOptions

Options for configuring keyframe-based animations.

```
struct KeyframeAnimationOptions
```

## Overview

Use these options with the [`animateKeyframes(withDuration:delay:options:animations:completion:)`](/documentation/UIKit/UIView/animateKeyframes(withDuration:delay:options:animations:completion:)) method.

## Topics

### Constants

[`UIViewKeyframeAnimationOptionLayoutSubviews`](/documentation/UIKit/UIView/KeyframeAnimationOptions/layoutSubviews)

The option to lay out subviews at commit time so that they’re animated along with their parent.

[`UIViewKeyframeAnimationOptionAllowUserInteraction`](/documentation/UIKit/UIView/KeyframeAnimationOptions/allowUserInteraction)

The option that allows a person to interact with views while they’re being animated.

[`UIViewKeyframeAnimationOptionBeginFromCurrentState`](/documentation/UIKit/UIView/KeyframeAnimationOptions/beginFromCurrentState)

The option to start an animation from the current setting associated with an already in-flight animation.

[`UIViewKeyframeAnimationOptionRepeat`](/documentation/UIKit/UIView/KeyframeAnimationOptions/repeat)

The option to repeat an animation indefinitely.

[`UIViewKeyframeAnimationOptionAutoreverse`](/documentation/UIKit/UIView/KeyframeAnimationOptions/autoreverse)

The option to run an animation backwards and forwards.

[`UIViewKeyframeAnimationOptionOverrideInheritedDuration`](/documentation/UIKit/UIView/KeyframeAnimationOptions/overrideInheritedDuration)

The option to force an animation to use the original duration value specified when the animation was submitted.

[`UIViewKeyframeAnimationOptionOverrideInheritedOptions`](/documentation/UIKit/UIView/KeyframeAnimationOptions/overrideInheritedOptions)

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

[`UIViewKeyframeAnimationOptionCalculationModeLinear`](/documentation/UIKit/UIView/KeyframeAnimationOptions/calculationModeLinear)

The option to use a simple linear calculation when interpolating between keyframe values.

[`UIViewKeyframeAnimationOptionCalculationModeDiscrete`](/documentation/UIKit/UIView/KeyframeAnimationOptions/calculationModeDiscrete)

The option to not interpolate between keyframe values, but rather to jump directly to each new keyframe value.

[`UIViewKeyframeAnimationOptionCalculationModePaced`](/documentation/UIKit/UIView/KeyframeAnimationOptions/calculationModePaced)

The option to compute intermediate keyframe values using a simple pacing algorithm.

[`UIViewKeyframeAnimationOptionCalculationModeCubic`](/documentation/UIKit/UIView/KeyframeAnimationOptions/calculationModeCubic)

The option to compute intermediate frames using a default Catmull-Rom spline that passes through the keyframe values.

[`UIViewKeyframeAnimationOptionCalculationModeCubicPaced`](/documentation/UIKit/UIView/KeyframeAnimationOptions/calculationModeCubicPaced)

The option to compute intermediate frames using the cubic scheme while ignoring the timing properties of the animation.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIView/KeyframeAnimationOptions/init(rawValue:))

Creates keyframe animation options with the specified raw value.

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)