<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISwipeGestureRecognizer/Direction-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UISwipeGestureRecognizerDirection"
  },
  "title" : "UISwipeGestureRecognizer.Direction"
}
-->

# UISwipeGestureRecognizer.Direction

The direction of the swipe.

```
struct Direction
```

## Topics

### Constants

[`right`](/documentation/UIKit/UISwipeGestureRecognizer/Direction-swift.struct/right)

The touch or touches swipe to the right.

[`left`](/documentation/UIKit/UISwipeGestureRecognizer/Direction-swift.struct/left)

The touch or touches swipe to the left.

[`up`](/documentation/UIKit/UISwipeGestureRecognizer/Direction-swift.struct/up)

The touch or touches swipe upward.

[`down`](/documentation/UIKit/UISwipeGestureRecognizer/Direction-swift.struct/down)

The touch or touches swipe downward.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UISwipeGestureRecognizer/Direction-swift.struct/init(rawValue:))

Creates a swipe direction structure with the specified raw value.



---

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)