<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKViewDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GLKViewDelegate"
  },
  "title" : "GLKViewDelegate"
}
-->

# GLKViewDelegate

Drawing callback methods for use with a [`GLKView`](/documentation/GLKit/GLKView) object.

```
protocol GLKViewDelegate : NSObjectProtocol
```

## Overview

An object that implements the [`GLKViewDelegate`](/documentation/GLKit/GLKViewDelegate) protocol can be set as a [`GLKView`](/documentation/GLKit/GLKView) object’s delegate. A delegate allows your application to provide a drawing method to a [`GLKView`](/documentation/GLKit/GLKView) object without subclassing the [`GLKView`](/documentation/GLKit/GLKView) class.

## Topics

### Drawing the View’s Contents

[`-  glkView:drawInRect:`](/documentation/GLKit/GLKViewDelegate/glkView(_:drawIn:))

Draws the view’s contents.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Conforming Types

[`GLKViewController`](/documentation/GLKit/GLKViewController)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)