Disable allowsEditing on the camera picker, stop showing weird cropping box in the resulting image UI.

This commit is contained in:
Stefan Ceriu 2023-06-08 10:53:01 +03:00 committed by Stefan Ceriu
parent ea91e371eb
commit 50df53a593

View File

@ -40,7 +40,7 @@ struct CameraPicker: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIImagePickerController {
let imagePicker = UIImagePickerController()
imagePicker.sourceType = .camera
imagePicker.allowsEditing = true
imagePicker.allowsEditing = false
imagePicker.delegate = context.coordinator
if let mediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {