---
title: draw()
framework: metalkit
role: symbol
role_heading: Instance Method
path: metalkit/mtkview/draw()
---

# draw()

Redraws the view’s contents immediately.

## Declaration

```swift
func draw()
```

## Discussion

Discussion This method manually tells the view to redraw its contents. Calling this method causes the view to call either the draw(in:) method of the view’s delegate, or the draw(_:) method of the MTKView subclass. Never call this method inside either drawing function.

## See Also

### Configuring Drawing Behavior

- [preferredFramesPerSecond](metalkit/mtkview/preferredframespersecond.md)
- [isPaused](metalkit/mtkview/ispaused.md)
- [enableSetNeedsDisplay](metalkit/mtkview/enablesetneedsdisplay.md)
- [presentsWithTransaction](metalkit/mtkview/presentswithtransaction.md)
