---
title: enableSnapshotRestoration()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nswindow/enablesnapshotrestoration()
---

# enableSnapshotRestoration()

Enables snapshot restoration.

## Declaration

```swift
func enableSnapshotRestoration()
```

## Discussion

Discussion While snapshot restoration is enabled, the system snapshots the window’s restorable state.

## See Also

### Handling Window Restoration

- [isRestorable](appkit/nswindow/isrestorable.md)
- [restorationClass](appkit/nswindow/restorationclass.md)
- [disableSnapshotRestoration()](appkit/nswindow/disablesnapshotrestoration().md)
