mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Disable allowsEditing on the camera picker, stop showing weird cropping box in the resulting image UI.
This commit is contained in:
parent
ea91e371eb
commit
50df53a593
@ -40,7 +40,7 @@ struct CameraPicker: UIViewControllerRepresentable {
|
|||||||
func makeUIViewController(context: Context) -> UIImagePickerController {
|
func makeUIViewController(context: Context) -> UIImagePickerController {
|
||||||
let imagePicker = UIImagePickerController()
|
let imagePicker = UIImagePickerController()
|
||||||
imagePicker.sourceType = .camera
|
imagePicker.sourceType = .camera
|
||||||
imagePicker.allowsEditing = true
|
imagePicker.allowsEditing = false
|
||||||
imagePicker.delegate = context.coordinator
|
imagePicker.delegate = context.coordinator
|
||||||
|
|
||||||
if let mediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
|
if let mediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user