---
title: delegate
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsgesturerecognizer/delegate
---

# delegate

The delegate of the gesture recognizer.

## Declaration

```swift
weak var delegate: (any NSGestureRecognizerDelegate)? { get set }
```

## Discussion

Discussion Use the delegate for fine-grained control over the recognition of a gesture. For example, you can use the delegate to determine whether gesture recognition should begin or whether it should start only after other gesture recognizers fail. The delegate must implement the NSGestureRecognizerDelegate protocol.
