I am trying to select multiple files in document picker. Here is my code:
let documentPicker = UIDocumentPickerViewController(documentTypes: [String(kUTTypeFolder)], in: .import)
documentPicker.delegate = self
self.present(documentPicker, animated: false) {
if #available(iOS 11.0, *) {
documentPicker.allowsMultipleSelection = true
}
}
But it is selecting only 1 file at a time. Can anyone suggest me a correct way?
Any help would be highly appreciated!!