Presents UIImagePickerController full screen
Workaround for iOS 13 interactive dismissal bug
This commit is contained in:
parent
963ab6a586
commit
bcfbb7d7a0
@ -30,6 +30,7 @@ class PhotoLibraryImportOption: NSObject, ImportOption
|
|||||||
|
|
||||||
let imagePickerController = UIImagePickerController()
|
let imagePickerController = UIImagePickerController()
|
||||||
imagePickerController.delegate = self
|
imagePickerController.delegate = self
|
||||||
|
imagePickerController.modalPresentationStyle = .fullScreen
|
||||||
imagePickerController.sourceType = .photoLibrary
|
imagePickerController.sourceType = .photoLibrary
|
||||||
imagePickerController.mediaTypes = [kUTTypeImage as String]
|
imagePickerController.mediaTypes = [kUTTypeImage as String]
|
||||||
imagePickerController.view.backgroundColor = .white
|
imagePickerController.view.backgroundColor = .white
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user