<!--
{
  "availability" : [
    "iOS: 5.0.0 - 12.0.0",
    "iPadOS: 5.0.0 - 12.0.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKView/delegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GLKView(py)delegate"
  },
  "title" : "delegate"
}
-->

# delegate

The view’s delegate.

```
@IBOutlet unowned(unsafe) var delegate: (any GLKViewDelegate)? { get set }
```

## Discussion

A delegate is optional. If a delegate is provided, it is called instead of calling a <doc://com.apple.documentation/documentation/UIKit/UIView/draw(_:)> method whenever the view’s contents need to be drawn. You should either subclass the view to override the `draw` method, or provide a delegate, but not both.

---

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)