mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Disable allowsEditing on the camera picker, stop showing weird cropping box in the resulting image UI.
This commit is contained in:
committed by
Stefan Ceriu
parent
ea91e371eb
commit
50df53a593
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user