A predicate that specifies which properties to select results by and that also specifies any constraints on selection.
Mac Catalyst 13.0+
Construct a predicate with the properties of the class of objects that you want to fetch, listed in Table 1. For example, the following code uses a predicate to fetch assets matching a specific set of mediaSubtypes values:
Photos does not support predicates created with the init(block:) method.