Closed mikestalker closed 2 years ago
Hi @mikestalker Can you give more details about the information you want from other actions?
Hello @guoyingtao
I'm using your library in application for editing photo, and after some transformations are done - there appears "Apply" button in my app. And only after user press "apply" I perform cropViewController?.crop()
.
So I need some event in delegate that informs me that some transformations were done, before I make "Apply" button available. Currently I use cropViewControllerDidEndResize
but it do not works for most events from CropToolbar
.
@guoyingtao sorry for bothering you, but can you please give me hint about your thoughts regarding this? Thank you in advance
Hi @mikestalker I can add more delegate functions to expose more editing events. Hope I can get a chance to do it this weekend.
Hi @mikestalker I added a new function cropViewControllerDidImageTransformed in CropViewControllerDelegate in this PR #222 Can you take a look to see if it is what you want?
Hello @guoyingtao , looks like that's what I need. Thank you for such quick fix. Waiting for 2.1.3.
Just released Mantis 2.2.0 which should solve this issue. Can you take a look? @mikestalker
Wow. Thank you so much @guoyingtao Just checked - works like a charm. As idea for future, maybe it can be useful if there is one more delegate method cropViewControllerDidImageReset - called when image reset to initial state. Not critical for me at all, just genereted idea. Thank you one more time.
No any method from
CropViewControllerDelegate
called when used any build in transformation:.counterclockwiseRotate, .clockwiseRotate, .alterCropper90Degree, .verticallyFlip, .horizontallyFlip
. Only.reset
and.ratio
actions triggerscropViewControllerDidEndResize
andcropViewControllerDidBeginResize
.Is there any chanse to get information regarding actions from standart CropToolbar without creating own CropToolbar class?