Skip to content

Commit

Permalink
Merge pull request #29 from Ericky14/master
Browse files Browse the repository at this point in the history
iOS LockSquare resetAspectRatioEnabled option
  • Loading branch information
shiv19 authored May 25, 2018
2 parents 9d4c227 + 9002e35 commit 9d6eb80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imagecropper.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class ImageCropper {
viewController.aspectRatioPreset = TOCropViewControllerAspectRatioPreset.PresetSquare;
viewController.aspectRatioLockEnabled = true; // The crop box is locked to the aspect ratio and can't be resized away from it
viewController.aspectRatioPickerButtonHidden = true;
viewController.resetAspectRatioEnabled = false;
}
page.presentViewControllerAnimatedCompletion(viewController, true, function () {
if (_options) {
Expand Down

0 comments on commit 9d6eb80

Please sign in to comment.