From: Roopesh Chander Date: Wed, 7 Nov 2018 13:42:36 +0000 (+0530) Subject: Importing: Also support importing public.text files in the file picker X-Git-Tag: 0.0.20181104-4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=879e9816aa1181b224fefc71d032dbc054961192;p=thirdparty%2Fwireguard-apple.git Importing: Also support importing public.text files in the file picker Signed-off-by: Roopesh Chander --- 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)