TOCropViewController
TOCropViewController copied to clipboard
How can you dismiss the CropViewController with no animation?
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?
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!