TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

Implement it as a view not as VC

Open Coder-ACJHP opened this issue 4 years ago • 2 comments

This amazing tool needs to support single view implementation. Consider if i want to use it with my custom UI design, if toolbar, navbar etc can be separated we can use it with our custom angel ruler, aspect chooser etc and show it on container view with custom size. In this case we forced to present it as a ViewController and as you know in some projects isn't acceptable. Thank you😊

Coder-ACJHP avatar Nov 16 '20 17:11 Coder-ACJHP

I also encountered the same scenario. i don't want to present or push the TOCropViewController. instead i want to perform cropping in a specific view. is this possible with current version ?

AwaisFayyaz avatar Nov 19 '20 09:11 AwaisFayyaz

Thanks for the feedback folks!

You can already separate it out if you need. All of the core cropping view logic is contained in the TOCropView class, which you can instantiate and control completely separate from the TOCropViewController class.

Apps like Mercari already implement the cropper in this way.

Is there anything in particular blocking you from doing the same?

TimOliver avatar Dec 15 '20 15:12 TimOliver