---
title: previewingGestureRecognizerForFailureRelationship
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontrollerpreviewing/previewinggesturerecognizerforfailurerelationship
---

# previewingGestureRecognizerForFailureRelationship

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

## Declaration

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

## Discussion

Discussion Use this gesture recognizer by implementing a delegate object for it that conforms to the 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:) and gestureRecognizer(_:shouldRequireFailureOf:) methods in UIGestureRecognizerDelegate.

## See Also

### Configuring a source view for a 3D Touch previewing view controller

- [sourceRect](uikit/uiviewcontrollerpreviewing/sourcerect.md)
