IOS Swift: local save with CloudKit

I use CloudKit to retrieve / store data, but also want to have a local save level. Does CloudKit have local storage capabilities? Or should I use NSUserDefaults (NSKeyedArchiver / NSKeyedUnarchiver)?

+6
source share
2 answers

CloudKit has no mechanism for cashing data locally; you have to do it yourself. I can suggest you take a look at EVCloudKitDao , which is a CloudKit convenience library that supports local file cashing.

+3
source

There is no caching built into CloudKit anyway when you implement it. Keep in mind to cache only system fields for recovery and synchronization with CloudKit again check fooobar.com/questions/983932 / ...

0
source

Source: https://habr.com/ru/post/983930/


All Articles