TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

Implement Discard Changes

Open gerardojchv opened this issue 7 years ago • 1 comments
trafficstars

  • [x] I have read this issue template and provided all possible information.
  • [x] I'm using CocoaPods and have run pod update before filing this issue.

Questions

When changes are made to the image and the cancel button is pressed, I want to ask the user "Discard changes".

Hardware / Software

Which version of the library were you using? Master. Swift Which version of iOS are you running? 11.2.6 What model of iOS device were you testing on? Iphone 6s If using CocoaPods, which version of CocoaPods are you on? 1.4.0

Goals

I want to ask the user "Discard Changes"

Expected Results

When you press cancel, know if there was a change in the original image

Actual Results

the cropViewController is closed without asking

Steps to Reproduce

  1. Crop image
  2. Press cancel button

The pod is an excellent job. Thanks.

gerardojchv avatar Mar 23 '18 04:03 gerardojchv

Oh! Fantastic idea @gerardojchv! That should be really simple to add too.

I'm strapped for time, so if anyone else wants to take it up, that'd be great! :D

TimOliver avatar Jul 22 '18 15:07 TimOliver