Contents

predicate

The predicate of the fetch request.

Declaration

var predicate: NSPredicate? { get set }

Discussion

The predicate instance constrains the selection of objects the NSFetchRequest instance is to fetch.

If the predicate is empty—for example, if it is an AND predicate whose array of elements contains no predicates—the request has its predicate set to nil. For more about predicates, see Predicate Programming Guide.

See Also

Specifying Fetch Constraints