Importing: Also support importing public.text files in the file picker

This commit is contained in:
Roopesh Chander 2018-11-07 19:12:36 +05:30 committed by Jason A. Donenfeld
parent 6e142cd924
commit 8ad6ba6adc
1 changed files with 1 additions and 1 deletions

View File

@ -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)