Show file extensions to help user choose file

This commit is contained in:
Nythepegasus
2022-12-03 17:24:07 -05:00
committed by Joseph Mattello
parent 75eebe8f8c
commit 4a5ca81e9a

View File

@@ -86,6 +86,7 @@ class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDelegate
types.append(contentsOf: UTType.types(tag: "mobiledevicepairing", tagClass: UTTagClass.filenameExtension, conformingTo: UTType.data))
types.append(.xml)
let documentPickerController = UIDocumentPickerViewController(forOpeningContentTypes: types)
documentPickerController.shouldShowFileExtensions = true
documentPickerController.delegate = self
self.present(documentPickerController, animated: true, completion: nil)
})