Importing: Also support importing public.text files in the file picker
This commit is contained in:
parent
6e142cd924
commit
8ad6ba6adc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue