You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Quick Start with SwiftUI](#quick-start-with-swiftui)
18
20
@@ -64,9 +66,21 @@ Instead of
64
66
NSPredicate(format:"color = %@ and city = %@", argumentArray:["Blue", city])
65
67
```
66
68
69
+
### `empty()`
67
70
71
+
Returns a new, non-nil, `NSPredicate` object that will match every single row in the database.
68
72
69
-
## 'NSManagedObject' Extensions
73
+
> This is especially helpful with:
74
+
> 1. The [@FetchRequest property wrapper](https://developer.apple.com/documentation/swiftui/fetchrequest). Using a nil predicate can cause unexpected behavior if you dynamically assign or edit the predicate at runtime.
75
+
> 2. Other Core Data quirks around nil predicates and updating when you do fancy stuff.
Finds an instance of the `NSManagedObject` that has a column (property) matching the passed value. If it doesn't exist in the database, creates one, and returns it.
0 commit comments