ScreenEdgePanGesture
public struct ScreenEdgePanGesture : Gesture
Wrapper of UIScreenEdgePanGestureRecognizer A discrete gesture recognizer that interprets panning gestures that start near an edge of the screen.
ScreenEdgePanGesture(edges: .right) { pan in
// screen edge pan action
}
-
The action to handle the gesture recognized by the receiver.
Declaration
Swift
public var action: (UIGestureRecognizer) -> Void { get }
-
The gesture behind the ScreenEdgePanGesture.
Declaration
Swift
public var gesture: UIGestureRecognizer { get }
-
Initializer
Declaration
Swift
public init(edges: UIRectEdge, onSwipeGesture: @escaping (_ gesture: UIGestureRecognizer) -> Void)
Parameters
edges
The acceptable starting edges for the gesture.
onSwipeGesture
The action to handle the gesture recognized by the receiver.