Class

UIScreenEdgePanGestureRecognizer

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

Declaration

class UIScreenEdgePanGestureRecognizer : UIPanGestureRecognizer

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 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

var edges: UIRectEdge

The acceptable starting edges for the gesture.

Related Types

struct UIRectEdge

Constants that specify the edges of a rectangle.

Relationships

Conforms To

See Also

Standard Gestures

Handling UIKit Gestures

Use gesture recognizers to simplify touch handling and create a consistent user experience.

Coordinating Multiple Gesture Recognizers

Discover how to use multiple gesture recognizers on the same view.

class UIHoverGestureRecognizer

A discrete gesture recognizer that interprets pointer movement over a view.

class UILongPressGestureRecognizer

A discrete gesture recognizer that interprets long-press gestures.

class UIPanGestureRecognizer

A discrete gesture recognizer that interprets panning gestures.

class UIPinchGestureRecognizer

A discrete gesture recognizer that interprets pinching gestures involving two touches.

class UIRotationGestureRecognizer

A discrete gesture recognizer that interprets rotation gestures involving two touches.

class UISwipeGestureRecognizer

A discrete gesture recognizer that interprets swiping gestures in one or more directions.

class UITapGestureRecognizer

A discrete gesture recognizer that interprets single or multiple taps.