Importing: Also support importing public.text files in the file picker

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2018-11-07 17:43:30 +01:00
committed by Jason A. Donenfeld
parent 3269bb476a
commit 879e9816aa
@@ -154,7 +154,7 @@ class TunnelsListTableViewController: UIViewController {
} }
func presentViewControllerForFileImport() { func presentViewControllerForFileImport() {
let documentTypes = ["com.wireguard.config.quick", String(kUTTypeZipArchive)] let documentTypes = ["com.wireguard.config.quick", String(kUTTypeText), String(kUTTypeZipArchive)]
let filePicker = UIDocumentPickerViewController(documentTypes: documentTypes, in: .import) let filePicker = UIDocumentPickerViewController(documentTypes: documentTypes, in: .import)
filePicker.delegate = self filePicker.delegate = self
self.present(filePicker, animated: true) self.present(filePicker, animated: true)