<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindowSceneDragInteraction/gestureForFailureRelationships",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWindowSceneDragInteraction(py)gestureForFailureRelationships"
  },
  "title" : "gestureForFailureRelationships"
}
-->

# gestureForFailureRelationships

The gesture that the drag interaction adds to the view hierarchy.

```
var gestureForFailureRelationships: UIGestureRecognizer { get }
```

## Discussion

If your app provides other gestures in the same view hierarchy, you may want to set up failure requirements between your app’s gestures and the drag interaction’s gesture. To do this, use the [`require(toFail:)`](/documentation/UIKit/UIGestureRecognizer/require(toFail:)) method to relate your gestures to this gesture. For example:

```swift
windowDragInteraction.gestureForFailureRelationships.require(toFail: swipeGesture)
```

---

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)