UIScreenEdgePanGestureRecognizer

extension UIScreenEdgePanGestureRecognizer
  • A convenience initializer for a UIScreenEdgePanGestureRecognizer so that it can be configured with a single line of code.

    Declaration

    Swift

    public convenience init(edges: UIRectEdge = .all,
                            handler: @escaping (_ gesture: UIScreenEdgePanGestureRecognizer) -> Void)

    Parameters

    edges

    Defaults UIScreenEdgePanGestureRecognizer’s edges property value

    handler

    The closure that is called when the gesture is recognized