Skip to content

Commit 9d6eb80

Browse files
authored
Merge pull request #29 from Ericky14/master
iOS LockSquare resetAspectRatioEnabled option
2 parents 9d4c227 + 9002e35 commit 9d6eb80

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/imagecropper.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export class ImageCropper {
108108
viewController.aspectRatioPreset = TOCropViewControllerAspectRatioPreset.PresetSquare;
109109
viewController.aspectRatioLockEnabled = true; // The crop box is locked to the aspect ratio and can't be resized away from it
110110
viewController.aspectRatioPickerButtonHidden = true;
111+
viewController.resetAspectRatioEnabled = false;
111112
}
112113
page.presentViewControllerAnimatedCompletion(viewController, true, function () {
113114
if (_options) {

0 commit comments

Comments
 (0)