documentState
The current state of the document.
Declaration
var documentState: UIDocument.State { get }Discussion
When document state changes, the UIDocument object stores a constant identifying the new state in this property. See the UIDocument.State enum for descriptions of these constants. To receive notifications about changes in document state, observe the stateChangedNotification notification.