setTranslation(_:in:)
Sets the translation value in the coordinate system of the specified view.
Declaration
func setTranslation(_ translation: CGPoint, in view: UIView?)Parameters
- translation:
A point that identifies the new translation value.
- view:
A view in whose coordinate system the translation is to occur.
Discussion
Changing the translation value resets the velocity of the pan.