Returns a Boolean value indicating whether the rule has been satisfied in the context of the specified rule system.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The rule system against which to evaluate the rule.
true if the rule is satisfied (and its action should be executed); otherwise,
A rule system calls this method when evaluating its rules.
If the rule was created with the
init(predicate:, calling this method returns the result of testing the predicate against the provided rule system. If the rule was created with the
init(block method, calling this method calls the predicate block and returns the result. Otherwise, this method always returns
false—subclasses should override this method to implement their own predicate tests.