TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.68k stars 932 forks source link

[BUG]pushing done button with dragging #518

Open sugitatestblue opened 2 years ago

sugitatestblue commented 2 years ago

Describe the bug

I guess it is default style only.

let cropvc = TOCropViewController(croppingStyle: .default, image: originalImage)

The plugin accept pushing done button when dragging didn't finish yet.

To Reproduce Steps to reproduce the behavior:

  1. select image
  2. Keep dragging
  3. push Done(in Japanese, 完了) button
  4. it accepts cropping with empty spacing

Expected behavior

it doesn't accepts cropping with empty spacing

Screenshots

Screen Shot 2022-04-25 at 15 46 58

iOS Device: