---
title: delegate
framework: extensionkit
role: symbol
role_heading: Instance Property
path: extensionkit/exhostviewcontroller/delegate
---

# delegate

A custom delegate object you use to receive notifications about the activation and deactivation of the app extension.

## Declaration

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

## See Also

### Responding to activation and deactivation events

- [EXHostViewControllerDelegate](extensionkit/exhostviewcontrollerdelegate.md)
