---
title: delegate
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/caanimation/delegate
---

# delegate

Specifies the receiver’s delegate object.

## Declaration

```swift
var delegate: (any CAAnimationDelegate)? { get set }
```

## Discussion

Discussion Defaults to nil. important: The delegate object is retained by the receiver. This is a rare exception to the memory management rules described in Advanced Memory Management Programming Guide. An instance of CAAnimation should not be set as a delegate of itself. Doing so (outside of a garbage-collected environment) will cause retain cycles.
