UIPanGestureRecognizer

Undocumented

  • The closure to call when there is a gesture event.

    Declaration

    Swift

    public var panAction: PanAction?
  • The translation of the pan gesture in the coordinate system of the specified view.

    The x and y values report the total translation over time. They are not delta values from the last time that the translation was reported. Apply the translation value to the state of the view when the gesture is first recognized—do not concatenate the value each time the handler is called.

    Declaration

    Swift

    public var translation: Vector
  • The velocity of the pan gesture in the coordinate system of the specified view.

    The velocity of the pan gesture, which is expressed in points per second. The velocity is broken into horizontal and vertical components.

    Declaration

    Swift

    public var velocity: Vector