---
title: rotationMode
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cakeyframeanimation/rotationmode
---

# rotationMode

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

## Declaration

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

## Discussion

Discussion The possible values for this property are described in 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

### Related Documentation

- [path](quartzcore/cakeyframeanimation/path.md)
