---
title: rotation
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uirotationgesturerecognizer/rotation
---

# rotation

The rotation of the gesture in radians.

## Declaration

```swift
var rotation: CGFloat { get set }
```

## Mentioned in

Handling rotation gestures

## Discussion

Discussion You may set the rotation value to an arbitrary value; however, setting the rotation resets the velocity. The rotation value is a single value that varies over time. It isn’t the delta value from the last time that the rotation was reported. Apply the rotation value to the state of the view when the gesture is first recognized — don’t concatenate the value each time the handler is called.

## See Also

### Interpreting the gesture

- [velocity](uikit/uirotationgesturerecognizer/velocity.md)
