<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocument/stateChangedNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIDocumentStateChangedNotification"
  },
  "title" : "stateChangedNotification"
}
-->

# stateChangedNotification

A notification the document object posts when there’s a change in the state of the document.

```
nonisolated class let stateChangedNotification: NSNotification.Name
```

## Discussion

When handling this notification, check the value of the [`documentState`](/documentation/UIKit/UIDocument/documentState) property to see what the new state is, and then proceed accordingly. There’s no `userInfo` dictionary.

---

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)