The following WWDC session saya that the user can select a folder and we can read all files in a folder
https://developer.apple.com/videos/play/wwdc2019/719/
But the delegte is never called when the user taps on a folder.
Does anybody know how the user can select a folder so that the app can get a callback with the URL of the selected folder.
Here is the code that I am using:
let documentPicker = UIDocumentPickerViewController(documentTypes: [String(kUTTypeFolder)], in: .open)
documentPicker.delegate = self
documentPicker.allowsMultipleSelection = true
present(documentPicker, animated: true) {
print("done presenting")
}