My app provides a video upload function. But after selecting the video, UIImagePickerController will perform video compression. At this time, clicking the Cancel button will not interrupt the compression process. Is there a way to solve this problem? Reference Image: https://i.stack.imgur.com/mBSAv.png
system is iOS 12.1
let vc = UIImagePickerController()
vc.sourceType = .photoLibrary
vc.mediaTypes = [kUTTypeMovie as String]
vc.delegate = self
navigationController?.present(vc, animated: true, completion: nil)
//when compressing video left button is not responding