---
title: "exclusively(before:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/gesture/exclusively(before:)"
---

# exclusively(before:)

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

## Declaration

```swift
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

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.

## See Also

### Composing gestures

- [simultaneously(with:)](swiftui/gesture/simultaneously(with:).md)
- [sequenced(before:)](swiftui/gesture/sequenced(before:).md)
