I have an app that recursively copies a set of files/folders from its resource to the .documentDirectory/.userDomainMask directory.
I know the files are successfully copied because I can see the files/folders in the Finder in the respective simulator directory.
However when I try to show them in my SwiftUI app using the UIDocumentPickerViewController the On My iPhone list is totally empty! Even if I specify the documents folder URL as the starting directoryURL it still comes up empty.
Am I missing something or is this not possible?