---
title: "glkViewController(_:willPause:)"
framework: glkit
role: symbol
role_heading: Instance Method
path: "glkit/glkviewcontrollerdelegate/glkviewcontroller(_:willpause:)"
---

# glkViewController(_:willPause:)

Called before the rendering loop is paused or resumed.

## Declaration

```swift
optional func glkViewController(_ controller: GLKViewController, willPause pause: Bool)
```

## Parameters

- `controller`: The controller that is about to change the rendering loop state.
- `pause`: doc://com.apple.documentation/documentation/Swift/true if the loop is being paused, doc://com.apple.documentation/documentation/Swift/false if it is being resumed.
