TOCropViewController
TOCropViewController copied to clipboard
Ability to rotate image on custom angle using fingers
This is awesome library, but looks like it doesn't have so important and I hope simple in implementation feature to be able to rotate image on custom angle using fingers.
Is it possible to add such functionality in future releases?
Hi @stepanov-standy!
Thanks so much! I'm glad you like the library! :D
Fine-grained rotations is something that's been requested ever since the very beginning (https://github.com/TimOliver/TOCropViewController/issues/3). I haven't added it since the added value to my use case for this library doesn't outweigh the amount of time and effort that would be required to implement.
You'd think it'd be a simple thing to implement, but there's a lot of moving parts involved in the math of lining up all of the view content while rotated inside of the scroll view, as well as generating the final image at the end. It's not impossible, but I think at this point, the library would need to be rather heavily refactored to make it possible.
I'm certainly interested in adding it as a feature down the line, but at this point, it might be better suited for the inevitable Swift rewrite I'll do for this library.
I'd you'd like to have a look at it yourself and see if it's something you could potentially add, please feel free to file a PR. :)
Thanks for the issue!