<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGestureRecognizerDelegate/gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIGestureRecognizerDelegate(im)gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:"
  },
  "title" : "gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)"
}
-->

# gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)

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

```
optional func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool
```

## Parameters

`gestureRecognizer`

An instance of a subclass of the abstract base class [`UIGestureRecognizer`](/documentation/UIKit/UIGestureRecognizer). This is the object sending the message to the delegate.

`otherGestureRecognizer`

An instance of a subclass of the abstract base class [`UIGestureRecognizer`](/documentation/UIKit/UIGestureRecognizer).

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to allow both `gestureRecognizer` and `otherGestureRecognizer` to recognize their gestures simultaneously. The default implementation returns <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` or `otherGestureRecognizer` would block the other gesture recognizer from recognizing its gesture. Note that returning <doc://com.apple.documentation/documentation/Swift/true> is guaranteed to allow simultaneous recognition; returning <doc://com.apple.documentation/documentation/Swift/false>, on the other hand, 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)