TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

How can you dismiss the CropViewController with no animation?

Open waterdrake opened this issue 10 months ago • 1 comments

Is there a way to set the dismiss animation to false when pressing "Cancel" in the CropViewController? So that there is no animation at all?

Normally when dismissing a UIViewController you would call: dismiss(animated: false, completion: nil), but is there a way to do this for CropViewController?

waterdrake avatar Mar 15 '25 19:03 waterdrake

Hey @waterdrake!

If you implement the delegate method called:

func cropViewController(_ cropViewController: CropViewController, didFinishCancelled cancelled: Bool)

This will cancel the default dismiss animation, letting you perform your own custom dismiss logic.

Hope that helped!

TimOliver avatar Sep 23 '25 08:09 TimOliver