Mastering Development

How to download .icloud files in folder accessed via UIDocumentPickerViewController?

I’m trying to use UIDocumentPickerViewController to get access to all files within an iCloud directory as described in this Apple documentation. let documentPicker = UIDocumentPickerViewController(documentTypes: [kUTTypeFolder as String], in: .open) documentPicker.delegate = self present(documentPicker, animated: true, completion: nil) extension FileViewController: UIDocumentPickerDelegate { func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { guard let url = urls.first […]