aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-07 19:12:36 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-07 17:43:30 +0100
commit879e9816aa1181b224fefc71d032dbc054961192 (patch)
tree83affcb2a1130d68936c19066219fdfeea0aee0c /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
parentiPad: Set correct sourceRect for the popover anchored on the central 'Add' button (diff)
downloadwireguard-apple-879e9816aa1181b224fefc71d032dbc054961192.tar.xz
wireguard-apple-879e9816aa1181b224fefc71d032dbc054961192.zip
Importing: Also support importing public.text files in the file picker
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index edecc67..b78c279 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -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)