Is there a way to make my Documents directory synchronized with iCloud?
I have setup all permissions and entitlements, but have no idea what to do next.
Could you please provide a swift code snippet or point into a direction I should look to?
Upload filesDrag files from the desktop or a folder window on your computer to the iCloud Drive window or a folder icon in the iCloud Drive window. If you drag to a folder icon, it becomes highlighted to confirm that the item you're dragging will go into the folder.
To automatically back up your device each day, turn on iCloud Backup via Settings > [your name] > iCloud > iCloud Backup and toggle iCloud Backup to on. If you're using iOS 10.2 or earlier, go to Settings > iCloud > Backup. The device will then back up when your phone is connected to power, locked, and on Wi-Fi.
Go to Settings. Tap Get content from another phone or System > Get content from another phone. Tap iPhone > Import from iCloud backup. Follow the steps shown onscreen to back up your iPhone content to your iCloud storage.
When I needed to keep NSUserDefaults in sync via iCloud in simple apps, I used: MKiCloudSync by Mugunth Kumar. While still Objective-C, it's pretty straightforward to use.
If you need iCloud Documents sync, you might check out iRareMedia/iCloudDocumentSync. Of course, this is a bit more work, but still easier than implementing all the methods by yourself.
Have a nice day,
@cdf1982
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With