Răsfoiți Sursa

allow to select images in the document picker

cyberta 5 ani în urmă
părinte
comite
153f92be83
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      deltachat-ios/Helper/MediaPicker.swift

+ 1 - 1
deltachat-ios/Helper/MediaPicker.swift

@@ -65,7 +65,7 @@ class MediaPicker: NSObject, UINavigationControllerDelegate, UIImagePickerContro
     }
     }
 
 
     func showDocumentLibrary(delegate: MediaPickerDelegate) {
     func showDocumentLibrary(delegate: MediaPickerDelegate) {
-        let types = [kUTTypePDF, kUTTypeText, kUTTypeRTF, kUTTypeSpreadsheet, kUTTypeVCard, kUTTypeZipArchive]
+        let types = [kUTTypePDF, kUTTypeText, kUTTypeRTF, kUTTypeSpreadsheet, kUTTypeVCard, kUTTypeZipArchive, kUTTypeImage]
         let documentPicker = UIDocumentPickerViewController(documentTypes: types as [String], in: .import)
         let documentPicker = UIDocumentPickerViewController(documentTypes: types as [String], in: .import)
         documentPicker.delegate = self
         documentPicker.delegate = self
         documentPicker.allowsMultipleSelection = false
         documentPicker.allowsMultipleSelection = false