<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKRuleSystem/state",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKRuleSystem(py)state"
  },
  "title" : "state"
}
-->

# state

A dictionary of state information to be evaluated by the system’s rules.

```
var state: NSMutableDictionary { get }
```

## Discussion

This dictionary is mutable—some rules might alter the system’s state when executed. If you change this dictionary’s contents outside of a rule action, you must reset and reevaluate the system.

## See Also

[`reset()`](/documentation/GameplayKit/GKRuleSystem/reset())

Returns the rule system to its original agenda and clears all facts.

[`evaluate()`](/documentation/GameplayKit/GKRuleSystem/evaluate())

Evaluates the rule system, executing the list of rules in its agenda.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)