<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGestureRecognizerDelegate/gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSGestureRecognizerDelegate(im)gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:"
  },
  "title" : "gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)"
}
-->

# gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)

Asks the delegate if two gesture recognizers should be allowed to recognize their gestures simultaneously.

```
@MainActor optional func gestureRecognizer(_ gestureRecognizer: NSGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: NSGestureRecognizer) -> Bool
```

## Parameters

`gestureRecognizer`

The first gesture recognizer to be considered. This is the object with which the delegate is associated.

`otherGestureRecognizer`

The second gesture recognizer to be considered.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to allow `gestureRecognizer` and `otherGestureRecognizer` to recognize their gestures simultaneously. If you do not implement this method, the default return value is <doc://com.apple.documentation/documentation/Swift/false>—no two gestures can be recognized simultaneously.

## Discussion

This method is called when recognition of a gesture by either `gestureRecognizer` and `otherGestureRecognizer` would block the other gesture recognizer from recognizing its gesture. Returning <doc://com.apple.documentation/documentation/Swift/true> is guaranteed to allow simultaneous recognition; returning <doc://com.apple.documentation/documentation/Swift/false> is not guaranteed to prevent simultaneous recognition because the other gesture recognizer’s delegate may return <doc://com.apple.documentation/documentation/Swift/true>.

---

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)