When rotateCropBoxFor90DegreeRotation is set to false, the crop box interaction becomes unstable after a 90-degree rotation.
Specifically, dragging the bottom-left or bottom-right corner of the crop box may cause it to suddenly shrink.
This behavior appears to be unintended and breaks the expected cropping interaction.
- In the Example project, locate the following method in ViewController.swift:
@IBAction func normalPresent(_ sender: Any) {}
- Inside this method, find the code block:
if let transformation = transformation {
- Add the following line above that block:
config.cropViewConfig.rotateCropBoxFor90DegreeRotation = false
-
Run the demo.
-
Tap the "Normal" button.
-
Tap the Rotate button to rotate the image.
-
Drag the bottom-left or bottom-right corner of the crop box.
Actual Result
The crop box may suddenly shrink while dragging, resulting in an abnormal and jumpy interaction.
Expected Result
After rotation, dragging any corner of the crop box should resize it smoothly and consistently, regardless of the value of rotateCropBoxFor90DegreeRotation.
When rotateCropBoxFor90DegreeRotation is set to false, the crop box interaction becomes unstable after a 90-degree rotation.
Specifically, dragging the bottom-left or bottom-right corner of the crop box may cause it to suddenly shrink.
This behavior appears to be unintended and breaks the expected cropping interaction.
Run the demo.
Tap the "Normal" button.
Tap the Rotate button to rotate the image.
Drag the bottom-left or bottom-right corner of the crop box.
Actual Result
The crop box may suddenly shrink while dragging, resulting in an abnormal and jumpy interaction.
Expected Result
After rotation, dragging any corner of the crop box should resize it smoothly and consistently, regardless of the value of rotateCropBoxFor90DegreeRotation.