0.4.4
Added Predicate.empty()
method.
Returns a new, non-nil, NSPredicate object that will match every single row in the database.
This is especially helpful with:
- The @FetchRequest property wrapper.
- Using a nil predicate can cause unexpected behavior if you dynamically assign or edit the predicate at runtime.
- Other Core Data quirks around nil predicates and updating when you do fancy stuff.
Before:
@FetchRequest(sortDescriptors: [], predicate: nil)
After
@FetchRequest(sortDescriptors: [], predicate: Predicate.empty())
Full Changelog: 0.4.3...0.4.4