I know I am late to iCloud drive, but I need clarification on it. I have an app that can have thousands of files in the documents folder. Files are added constantly. Now, as far as I know, iCloud drive is yet another "hidden" folder that my app can copy to, which is then synced to iCloud Drive in the cloud. The problem is that if there are thousands of files and many of them are large, how I do I handle this situation? I know I can theoretically do anything I want with iCloud drive, but for example, if a user uses Open in... and now a 100 files are added, am I supposed to copy these files to iCloud drive and delete them from my documents folder?
Or is the iCloud drive folder (ubiquity-container) just another place to store and download from - into the documents folder?
I'm trying to figure out how to avoid having duplicate information stored on the iPad.
1: If I just use iCloud drive like DropBox and upload and sync to it, I will have duplicates because I would copy any new downloaded files in my iCloud "drive" (which is really a folder on the iPad) and copy those files to the documents folder - now we have duplicates.
2: Am I supposed to delete documents in the documents folder and just use the iCloud drive folder instead of the app document folder?
Sorry.... confused about how this should be handled.
Apple seems to want apps to choose iCloud Drive or not completey (your #2) when the app first starts. So all the docs would be stored on iCloud drive or not.
If your concern is quickly eating up the user's iCloud quota, I think you could just keep the local documents and use UIDocumentPickerViewController to open files in the iCloud drive.