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 19:12:36 +05:30
committed by Jason A. Donenfeld
parent 3269bb476a
commit 879e9816aa
@@ -154,7 +154,7 @@ class TunnelsListTableViewController: UIViewController {
}
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)
filePicker.delegate = self
self.present(filePicker, animated: true)