evaluatePredicate(in:)
Returns a Boolean value indicating whether the rule’s predicate has been satisfied in the context of the specified rule system.
Declaration
func evaluatePredicate(in system: GKRuleSystem) -> BoolReturn Value
true if the rule is satisfied (and its action should be executed); otherwise, false.
Discussion
The GKNSPredicateRule class overrides this method to use its predicate property for testing the rule. Subclasses of GKNSPredicateRule do not need to override this method.