UIDocumentPickerViewController calls dismiss(animated:completion:) twice when double tapping on file from services other than iCloud (Google Drive, Dropbox, Adobe Document Cloud)

Originator:vl.khramtsov
Number:rdar://FB9560756 Date Originated:24.08.2021
Status:Open Resolved:
Product:UIKit Product Version:iOS 14.7.1
Classification: Reproducible:yes
 
UIDocumentPickerViewController calls dismiss(animated:completion:) twice when double tapping on file from services other than iCloud (Google Drive, Dropbox, Adobe Document Cloud, etc)
As a result it dismisses UIDocumentPickerViewController and it's presenting view controller

To reproduce run attached Xcode project on device with third-party services that use a File Provider extension:
- Press "Button" to modally present VC2 
- Press "Button" to present UIDocumentPickerViewController
- Double tap on file from service other than iCloud

Expected result: 
- UIDocumentPickerViewController dismissed

Actual result:
- UIDocumentPickerViewController dismissed along with VC2, on which it was presented

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!