TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.7k stars 938 forks source link

Disable Dimming Effect #326

Open sandeepk000 opened 5 years ago

sandeepk000 commented 5 years ago

First of all @TimOliver thanks for this awesome library! Maybe you or someone else can help me with my question:

I'm using the library and I couldn't find how to Avoid the dimming effect. While you are editing the image you can see the whole image and as soon as you stop editing, the image outside of the cropView gets dimmed out. Is it possible to disable that dimming? I want to always show the whole image.i saw you told somewhere to set translucencyAlwaysHidden to YES in swift code library.but there is no variable named that in swift code library.Please check.

Thanks again for this awesome work!!

TimOliver commented 5 years ago

Hi @kunusiths!

Thanks a lot! I'm glad you like the library, but please don't go around asking the same question in closed issues and trying to contact me on my private channels to get my attention. It's a bit over the top. 😅

If you're referring to the dimming view separate from the translucency view, that's not actually implemented at the moment, in either Objective-C or Swift.

It should be relatively easy to just add a dimmingViewEnabled property to TOCropView and then use it to remove the dimming view. I'm busy working on another project now, so I don't have time to add new features to this library at the moment.

If you feel up to it, try adding the feature yourself and filing a PR. Thanks! :)