---
title: stateChangedNotification
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uidocument/statechangednotification
---

# stateChangedNotification

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

## Declaration

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

## Discussion

Discussion When handling this notification, check the value of the documentState property to see what the new state is, and then proceed accordingly. There’s no userInfo dictionary.
