I need to remove the cropping square of ImagePickerViewController
whenever I pick a photo, while maintaining the trimming when picking video because I need them to be shorter or equal to 10 seconds.
Searching online I found out that setting this variable .allowsEditing = true
does the trick and indeed it does, but I loose the trimming capability when picking videos.
this is my code:
let imagePickerController = UIImagePickerController()
imagePickerController.mediaTypes = ["public.image", "public.movie"]
imagePickerController.delegate = self
imagePickerController.allowsEditing = true
imagePickerController.videoMaximumDuration = 10.0
self.present(imagePickerController, animated: true, completion: nil)
How can I preserve the trimming capability when picking video while removing the cropping square when picking images?
Online I found different questions but no one had my specific problem in topic: