OK, we have shown an incredible amount of power in our SQLiteData library. Not only does it give us seamless synchronization of our SQLite database to CloudKit, and not only does it automatically handle conflict resolution without you having to think about it, and not only does it handle large binary assets in the background, but it is also easy to turn off and on so that you can be very precise about when user data is synchronized.
But can you believe it gets better? What if we said that with just a few more lines of code we can make it possible for our users to share a record with another iCloud user so that you two can collaborate? And further, all associations will automatically be shared. And we even have full support for permissions so that you can grant read-only access or read-write access.
And on top of all of that, we make all the underlying CloudKit metadata 100% publicly available so that you are free to grab that information, read from it, and do whatever you want with it. It is even accessible to you at the SQL querying level, which means you can write complex SQL queries that interact with CloudKit information.
It’s incredible to see, and we’re going to show it all off, but first let’s get the basics of sharing into place.