I would like to use Realm as a persistence model to represent my public CloudKit database. Is it possible?
In particular, I would like to use CloudKit to take the Realm data model and store it in my CloudKit database.
This would overcome my current problem: get data from CloudKit every time the application is loaded into memory. Without a local data model, when there is no Internet connection, data is not retrieved due to a lack of persistence.
If the application is deleted from memory, any data stored in the application retrieved from CloudKit is also deleted from memory.
source share