<!--
{
  "availability" : [
    "iOS: 9.0.0 - 13.0.0",
    "iPadOS: 9.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: 9.0.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewControllerPreviewing/previewingGestureRecognizerForFailureRelationship",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewControllerPreviewing(py)previewingGestureRecognizerForFailureRelationship"
  },
  "title" : "previewingGestureRecognizerForFailureRelationship"
}
-->

# previewingGestureRecognizerForFailureRelationship

A gesture recognizer suitable for setting up failure requirements for a preview’s (peek’s) gestures.

```
var previewingGestureRecognizerForFailureRelationship: UIGestureRecognizer { get }
```

## Discussion

Use this gesture recognizer by implementing a delegate object for it that conforms to the [`UIGestureRecognizerDelegate`](/documentation/UIKit/UIGestureRecognizerDelegate) protocol. The protocol methods let you prevent a preview (peek) press from interfering with an app’s other supported gestures. For example, you could delay a preview’s presentation until after other gestures fail, or you could allow simultaneous recognition of a press and other gestures during a preview’s presentation.

For more information, see the [`gestureRecognizer(_:shouldBeRequiredToFailBy:)`](/documentation/UIKit/UIGestureRecognizerDelegate/gestureRecognizer(_:shouldBeRequiredToFailBy:)) and [`gestureRecognizer(_:shouldRequireFailureOf:)`](/documentation/UIKit/UIGestureRecognizerDelegate/gestureRecognizer(_:shouldRequireFailureOf:)) methods in [`UIGestureRecognizerDelegate`](/documentation/UIKit/UIGestureRecognizerDelegate).

---

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)