Also, if you try to use the NSDiffableDataSourceSnapshotReference that is passed to your delegate in controller(_, didChangeContentWith:), you get all sorts of type errors which seem to indicate a problem with how this type is imported into Swift:(lldb) po snapshot.sectionIdentifiers Precondition failed: NSArray element failed to match the Swift Array Element type Expected NSManagedObjectID but found __NSCFConstantString: … (lldb) po snapshot.itemIdentifiers Precondition failed: NSArray element failed to match the Swift Array Element type Expected NSString but found NSTemporaryObjectID_0: …This lets me think that NSDiffableDataSourceSnapshotReference<NSManagedObjectID, NSString> should probably be NSDiffableDataSourceSnapshotReference<NSString, NSManagedObjectID>.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: