---
title: "init(_:_:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/exclusivegesture/init(_:_:)"
---

# init(_:_:)

Creates a gesture from two gestures where only one of them succeeds.

## Declaration

```swift
nonisolated init(_ first: First, _ second: Second)
```

## Parameters

- `first`: The first of two gestures. This gesture has precedence over the other gesture.
- `second`: The second of two gestures.

## See Also

### Creating the gesture

- [first](swiftui/exclusivegesture/first.md)
- [second](swiftui/exclusivegesture/second.md)
