From 32fa5823167212791b94a35bbfe0c682d99f2d64 Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Mon, 17 Jun 2024 16:33:03 +0400 Subject: [PATCH] [ios] fix file import using the uidocumentpicker file should be imported as a copy because the files app will block the access after the dismiss Signed-off-by: Kiryl Kaveryn --- iphone/Maps/UI/DocumentPicker/DocumentPicker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/UI/DocumentPicker/DocumentPicker.swift b/iphone/Maps/UI/DocumentPicker/DocumentPicker.swift index 2c83febda4..ab65e61fec 100644 --- a/iphone/Maps/UI/DocumentPicker/DocumentPicker.swift +++ b/iphone/Maps/UI/DocumentPicker/DocumentPicker.swift @@ -10,7 +10,7 @@ final class DocumentPicker: NSObject { self.completionHandler = completionHandler let documentPickerViewController: UIDocumentPickerViewController if #available(iOS 14.0, *) { - documentPickerViewController = UIDocumentPickerViewController(forOpeningContentTypes: fileTypes.map(\.utType)) + documentPickerViewController = UIDocumentPickerViewController(forOpeningContentTypes: fileTypes.map(\.utType), asCopy: true) } else { documentPickerViewController = UIDocumentPickerViewController(documentTypes: fileTypes.map(\.typeIdentifier), in: .import) }