Instance Property


A predicate to be tested when evaluating the rule.


var predicate: NSPredicate { get }


When the rule is evaluated, GameplayKit tests this predicate against the GKRuleSystem object evaluating the rule.

See Also

Evaluating a Rule

func evaluatePredicate(in: GKRuleSystem) -> Bool

Returns a Boolean value indicating whether the rule’s predicate has been satisfied in the context of the specified rule system.