---
title: delegate
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnprogram/delegate
---

# delegate

The delegate of the program object.

## Declaration

```swift
unowned(unsafe) var delegate: (any SCNProgramDelegate)? { get set }
```

## Discussion

Discussion An SCNProgram object sends delegate messages if errors occur when compiling GLSL source code.

## See Also

### Providing a Delegate Object

- [SCNProgramDelegate](scenekit/scnprogramdelegate.md)
