diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-07 19:12:36 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-07 17:43:30 +0100 |
commit | 879e9816aa1181b224fefc71d032dbc054961192 (patch) | |
tree | 83affcb2a1130d68936c19066219fdfeea0aee0c /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | |
parent | iPad: Set correct sourceRect for the popover anchored on the central 'Add' button (diff) | |
download | wireguard-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 '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 |
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) |