From 879e9816aa1181b224fefc71d032dbc054961192 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Wed, 7 Nov 2018 19:12:36 +0530 Subject: [PATCH] Importing: Also support importing public.text files in the file picker Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)