<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAKeyframeAnimation/rotationMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAKeyframeAnimation(py)rotationMode"
  },
  "title" : "rotationMode"
}
-->

# rotationMode

Determines whether objects animating along the path rotate to match the path tangent.

```
var rotationMode: CAAnimationRotationMode? { get set }
```

## Discussion

The possible values for this property are described in [Rotation Mode Values](/documentation/QuartzCore/rotation-mode-values). The default value of this property is `nil`, which indicates that objects should not rotate to follow the path.

The effect of setting this property to a non-`nil` value when no path object is supplied is undefined.

## See Also

[`path`](/documentation/QuartzCore/CAKeyframeAnimation/path)

The path for a point-based property to follow.



---

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)