https://github.com/frankdilo/fdrotationgesturerecognizer
A gesture recognizer for rotations
https://github.com/frankdilo/fdrotationgesturerecognizer
Last synced: about 1 year ago
JSON representation
A gesture recognizer for rotations
- Host: GitHub
- URL: https://github.com/frankdilo/fdrotationgesturerecognizer
- Owner: frankdilo
- License: mit
- Archived: true
- Created: 2015-06-21T20:04:41.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-20T18:42:17.000Z (almost 11 years ago)
- Last Synced: 2025-03-03T23:51:25.033Z (over 1 year ago)
- Language: Objective-C
- Size: 2.71 MB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/frankdilo/FDRotationGestureRecognizer/raw/master/Other/demo.mov) 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](https://itunes.apple.com/it/app/my-fertility/id862972591?mt=8) to implement the circular day picker. Thanks to [@dzamir](https://twitter.com/dzamir) and Return Service for letting me open source it :)
