KindOfADrag icon indicating copy to clipboard operation
KindOfADrag copied to clipboard

Swift example of dragging around a UIView with optional snap

KindOfADrag

license Build Status GitHub tag GitHub release Swift 3

iOS

Sponsors Twitter @GeneDeLisaDev

How to drag a UIView around using a pan gesture recognizer.

You can restrict dragging to x or y.

You can set a threshold before a drag begins

You can set a snap in the x or y direction.

Blog post for this example.

Blog post

Bugs

GitHub issues

If you find one, please add it to issues

Buy my kitty Giacomo some cat food

paypal

Giacomo Kitty

Licensing

MIT

Please read the LICENSE for details.

Credits