---
title: flushGraphics()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsgraphicscontext/flushgraphics()
---

# flushGraphics()

Forces any buffered operations or data to be sent to the graphics context’s destination.

## Declaration

```swift
func flushGraphics()
```

## Discussion

Discussion Graphics contexts use buffers to queue pending operations but for efficiency reasons may not always empty those buffers immediately. This method forces the buffers to be emptied.
