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

# sequenced(before:)

Sequences a gesture with another one to create a new gesture, which results in the second gesture only receiving events after the first gesture succeeds.

## Declaration

```swift
@MainActor @preconcurrency func sequenced<Other>(before other: Other) -> SequenceGesture<Self, Other> where Other : Gesture
```

## Parameters

- `other`: A gesture you want to combine with another gesture to create a new, sequenced gesture.

## Return Value

Return Value A gesture that’s a sequence of two gestures.

## See Also

### Composing gestures

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