<!--
{
  "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/SequenceGesture",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15SequenceGestureV"
  },
  "title" : "SequenceGesture"
}
-->

# SequenceGesture

A gesture that’s a sequence of two gestures.

```
@frozen nonisolated struct SequenceGesture<First, Second> where First : Gesture, Second : Gesture
```

## Overview

Read [Composing SwiftUI gestures](/documentation/SwiftUI/Composing-SwiftUI-Gestures) to learn how you can create a sequence
of two gestures.

## Topics

### Creating the gesture

[`init(_:_:)`](/documentation/SwiftUI/SequenceGesture/init(_:_:))

Creates a sequence gesture with two gestures.

[`first`](/documentation/SwiftUI/SequenceGesture/first)

The first gesture in a sequence of two gestures.

[`second`](/documentation/SwiftUI/SequenceGesture/second)

The second gesture in a sequence of two gestures.

### Getting the gesture’s values

[`SequenceGesture.Value`](/documentation/SwiftUI/SequenceGesture/Value)

The value of a sequence gesture that helps to detect whether the first
gesture succeeded, so the second gesture can start.



---

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)