0

I'm not sure if this is possible but hope that it is.

My app is more complicated that this example, so I'm using this to explain.

The iOS app offers e-books and stories which are organized by library, so a user can subscribe to a library CKShare and have access to all the books in that library, potentially tens of thousands of books. Obviously one wouldn't want to duplicate the entire library from CloudKit to the local CoreData store, so I'm wondering if there is a way of filtering what gets synched to the local store via a predicate. The predicate might allow the user to only duplicate a genre (fiction) and/or author (Tom Clancy) such that the local store only has a few dozen books instead of tens of thousands. The nature of the app is that it is important to be able to access the books/stories desired off-line, so caching the desired books is necessary.

I realize that if I was doing the sync manually vs taking the default core data -> cloudkit sync this is doable, but I'd like to use the default sync mechanism and apply a filter. Can this be done and if so, how?

Russ
  • 467
  • 3
  • 10

0 Answers0