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.