CoreDataKit
CoreDataKit copied to clipboard
Sample project?
Has anyone got a sample project running this kit? It looks great but I can't get the suggested code to build.
I can get the first chunk (persistentStoreCoordinator) to build, but when I add the CDK.performBlockOnBackgroundContext chunk of code (modified to suit my model) I get a build error:
Cannot invoke 'performBlockOnBackgroundContext' with an argument list of type '((_) -> _, completionHandler: (_, _) -> _)'
Removing the second parameter from the completion handlers parameters (which seem indicated by the declaration), I get:
Cannot invoke 'value' with no arguments
Sadly, auto-complete is not providing much help here, so I am almost certainly missing something and would be very grateful for a sample project.
I don't have a sample project right now. Would be very nice to have so good suggestion!
On your concrete error above, could you show your CDK related code? Maybe I can spot the error for you. :)