In my project I have used self.imagePicker.allowsEditing = true
for image cropping. When image taken from gallery it is working fine I can move the image through the rectangle but when image taken directly from camera it is unable to pan image, user can select only the area which appear first time in that rectangle.Like in the given picture top and bottom area can not be selected.
self.imagePicker.allowsEditing = true
self.imagePicker.sourceType = .camera
self.imagePicker.mediaTypes = ["public.image"]
self.imagePicker.cameraCaptureMode = .photo
self.imagePicker.sourceType = UIImagePickerControllerSourceType.camera
self.present(self.imagePicker, animated: true, completion: nil)