Performs actions that should result when the rule is 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.
A rule system calls this method when evaluating its rules, if and only if the rule’s predicate has been satisfied (that is, the
evaluate method has returned
YES), and after moving the rule from its
agenda list to its
If the rule was created with the
rule, calling this method asserts or retracts the fact as specified in the provided rule system. If the rule was created with the
rule method, calling this method calls the action block. Otherwise, this method does nothing—subclasses should override this method to implement their own actions.