All Projects → frankdilo → FDRotationGestureRecognizer

frankdilo / FDRotationGestureRecognizer

Licence: MIT license
A gesture recognizer for rotations

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

FDRotationGestureRecognizer

A UIGestureRecognizer subclass that, once added to a view, allows to easily measure the rotation performed by the user dragging on the screen.

Demo

This is just a little demo built around the gesture recognizer:

(Video available here if you don't like gifs.)

How it works

Basically when the user starts the gesture, the initial tap coordinates are recorded and, as the gesture continues, the angle is updated as explained in this image.

Credits

I created this component while building the MyFertility app to implement the circular day picker. Thanks to @dzamir and Return Service for letting me open source it :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].