TOCropViewController
TOCropViewController copied to clipboard
Rounded corners
Feature Request
Hey, Tim!
I included your library in a couple of my projects before and I would really prefer to use it in a current one, but I'm looking for a 'rounded corners' feature, so the cropped image was not in a circle, but in rectangular with rounded corners. It would be also great if there would be a possibility to change the value of that corner radius.
Hi @drougojrom! Cool! Glad to hear you were able to make use of the library in several projects. :)
Hmmm, interesting! What is your use case for that exactly? Would the rectangle need to be resizable? Or locked in place like the circle mode?
It might be a bit tricky. Since the crop view controller relies on the image's own sizing, you'd have to specify the corner radius as a fraction instead of a discrete number.
It can be like circle mode, in my case, it is completely fine
I'd like to implement this at some point, but I don't have the time to add any more features that don't align with my own app for now.
I'll stick the pr requested tag here in case anyone else would like to try implementing this. :)