Sync — 1.6.6
Updated to DATAStack 5.0.0
Release notes from DATAStack here:
- Refactored all the things to have better error handling and better code coverage
- Added a new method to create a background context, super useful when doing saves with NSOperations
public func newBackgroundContext() -> NSManagedObjectContext
BREAKING CHANGE
- Removed the need to call
persistWithCompletion
orpersist
, you just need to save your used context and magic will happen
// Just kill this babies, they are no longer needed
dataStack.persist {error in
}
dataStack.persistWithCompletion {
}
- Now
drop()
throws, before it was hiding the error message but now you can deal with that. If you're an Objective-C user this will no work for you, useforceDrop()
instead
Before:
dataStack.drop()
After:
try dataStack.drop()