Importing: Also support importing public.text files in the file picker
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user