expressionValue(with:context:)
Evaluates an expression using a specified object and context.
Declaration
func expressionValue(with object: Any?, context: NSMutableDictionary?) -> Any?Parameters
- object:
The object against which the expression is evaluated.
- context:
A dictionary that the expression can use to store temporary state for one predicate evaluation. Can be
nil.Note that
contextis mutable, and that it can only be accessed during the evaluation of the expression. You must not attempt to retain it for use elsewhere.
Return Value
The evaluated object.