Presents UIImagePickerController full screen

Workaround for iOS 13 interactive dismissal bug
This commit is contained in:
Riley Testut 2019-10-14 17:24:46 -07:00
parent 963ab6a586
commit bcfbb7d7a0

View File

@ -30,6 +30,7 @@ class PhotoLibraryImportOption: NSObject, ImportOption
let imagePickerController = UIImagePickerController()
imagePickerController.delegate = self
imagePickerController.modalPresentationStyle = .fullScreen
imagePickerController.sourceType = .photoLibrary
imagePickerController.mediaTypes = [kUTTypeImage as String]
imagePickerController.view.backgroundColor = .white