Instance Property

direction

The permitted direction of the swipe for this gesture recognizer.

Declaration

var direction: UISwipeGestureRecognizer.Direction { get set }

Discussion

The default direction is right. See descriptions of UISwipeGestureRecognizer.Direction constants for more information.

See Also

Configuring the Gesture

var numberOfTouchesRequired: Int

The number of touches that must be present for the swipe gesture to be recognized.