---
title: NSRotationGestureRecognizer
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsrotationgesturerecognizer
---

# NSRotationGestureRecognizer

A continuous gesture recognizer that tracks two trackpad touches moving opposite each other in a circular motion.

## Declaration

```swift
class NSRotationGestureRecognizer
```

## Overview

Overview This rotation gesture implies that the underlying view should rotate in a matching direction. The gesture is recognized when the trackpad touches end. Upon creation, the gesture recognizer sets the value of the delaysRotationEvents property to true.

## Topics

### Interpreting the Gesture

- [rotation](appkit/nsrotationgesturerecognizer/rotation.md)
- [rotationInDegrees](appkit/nsrotationgesturerecognizer/rotationindegrees.md)

## Relationships

### Inherits From

- [NSGestureRecognizer](appkit/nsgesturerecognizer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Standard Gestures

- [NSClickGestureRecognizer](appkit/nsclickgesturerecognizer.md)
- [NSPressGestureRecognizer](appkit/nspressgesturerecognizer.md)
- [NSPanGestureRecognizer](appkit/nspangesturerecognizer.md)
- [NSMagnificationGestureRecognizer](appkit/nsmagnificationgesturerecognizer.md)
