Instance Property

predicate

A predicate to be tested when evaluating the rule.

Declaration

var predicate: NSPredicate { get }

Discussion

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.