При выборе видео с помощью UIImagePickerController в ios13 возникла проблема?
let myImagePickerController = UIImagePickerController()
myImagePickerController.sourceType = .savedPhotosAlbum
myImagePickerController.mediaTypes = [ ( kUTTypeMovie ) as String ,( kUTTypeImage ) as String ]
myImagePickerController.delegate = self
myImagePickerController.isEditing = false
myImagePickerController.navigationBar.isHidden = true
myImagePickerController.modalPresentationStyle = .fullScreen
решение этой проблемы - это
let myImagePickerController = UIImagePickerController()
myImagePickerController.sourceType = .savedPhotosAlbum
myImagePickerController.mediaTypes = [ ( kUTTypeMovie ) as String ,( kUTTypeImage ) as String ]
myImagePickerController.delegate = self
myImagePickerController.isEditing = false
myImagePickerController.navigationBar.isHidden = true
myImagePickerController.modalPresentationStyle = .fullScreen
if #available(iOS 11.0, *) {
myImagePickerController.videoExportPreset = AVAssetExportPresetPassthrough
}
просто так! ?