<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScreenEdgePanGestureRecognizer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIScreenEdgePanGestureRecognizer"
  },
  "title" : "UIScreenEdgePanGestureRecognizer"
}
-->

# UIScreenEdgePanGestureRecognizer

A continuous gesture recognizer that interprets panning gestures that start near an edge of the screen.

```
@MainActor class UIScreenEdgePanGestureRecognizer
```

## Overview

The system uses screen edge gestures in some cases to initiate view controller transitions. You can use this class to replicate the same gesture behavior for your own actions.

After creating a screen edge pan gesture recognizer, assign an appropriate value to the [`edges`](/documentation/UIKit/UIScreenEdgePanGestureRecognizer/edges) property before attaching the gesture recognizer to your view. You use this property to specify the edges where the gesture can start. This gesture recognizer ignores any touches beyond the first touch.

## Topics

### Specifying the starting edges

[`edges`](/documentation/UIKit/UIScreenEdgePanGestureRecognizer/edges)

The acceptable starting edges for the gesture.

[`UIRectEdge`](/documentation/UIKit/UIRectEdge)

Constants that specify the edges of a rectangle.



---

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)