Instance Method

evaluate(with:)

Returns a Boolean value indicating whether the specified object matches the conditions specified by the predicate.

Declaration

func evaluate(with object: Any?) -> Bool

Parameters

object

The object against which to evaluate the predicate.

Return Value

true if object matches the conditions specified by the predicate, otherwise false.

See Also

Evaluating a Predicate

func evaluate(with: Any?, substitutionVariables: [String : Any]?) -> Bool

Returns a Boolean value indicating whether the specified object matches the conditions specified by the predicate after substituting in the values in a given variables dictionary.

func allowEvaluation()

Forces a predicate that was securely decoded to allow evaluation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software