---
title: restoreGraphicsState()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsgraphicscontext/restoregraphicsstate()-swift.type.method
---

# restoreGraphicsState()

Pops a graphics context from the per-thread stack, makes it current, and sends the context a restore graphics state message.

## Declaration

```swift
class func restoreGraphicsState()
```

## See Also

### Managing the Graphics State

- [restoreGraphicsState()](appkit/nsgraphicscontext/restoregraphicsstate()-swift.method.md)
- [saveGraphicsState()](appkit/nsgraphicscontext/savegraphicsstate()-swift.type.method.md)
- [saveGraphicsState()](appkit/nsgraphicscontext/savegraphicsstate()-swift.method.md)
- [setGraphicsState(_:)](appkit/nsgraphicscontext/setgraphicsstate(_:).md)
