<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Gesture/exclusively(before:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI7GesturePAAE11exclusively6beforeAA09ExclusiveC0Vyxqd__Gqd___tAaBRd__lF"
  },
  "title" : "exclusively(before:)"
}
-->

# exclusively(before:)

Combines two gestures exclusively to create a new gesture where only one
gesture succeeds, giving precedence to the first gesture.

```
nonisolated func exclusively<Other>(before other: Other) -> ExclusiveGesture<Self, Other> where Other : Gesture
```

## Parameters

`other`

A gesture you combine with your gesture, to create a
new, combined gesture.

## Return Value

A gesture that’s the result of combining two gestures where
only one of them can succeed. SwiftUI gives precedence to the first
gesture.

---

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)