Keyboard flickering when attempting to rename file on UIDocumentPickerViewController as UIViewControllerRepresentable

Originator:henrycooper93
Number:rdar://FB9639432 Date Originated:20/09/21
Status:Open Resolved:
Product:SwiftUI (iOS) Product Version:
Classification: Reproducible:YES
 
iOS 15 ONLY

When using a UIDocumentPickerViewController as a UIViewRepresentable, editing a document name is prevented by ‘flickering’ of the keyboard.

Note this does not happen when using a UIDocumentPickerViewController in a non-SwiftUI app.

Steps to reproduce:

Present UIDocumentPickerViewController either as `sheet` or `fullScreenCover`
Tap document name or force-press and select rename

Observed:
Keyboard flickers and UIDocumentPickerViewController is unresponsive

Expected:
Ability to rename file

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!