---
title: delegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwebview/delegate
---

# delegate

The receiver’s delegate.

## Declaration

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

## Discussion

Discussion The delegate is sent messages when content is loading. See UIWebViewDelegate for the optional methods this delegate may implement. important: Before releasing an instance of UIWebView for which you have set a delegate, you must first set its delegate property to nil. This can be done, for example, in your dealloc method.

## See Also

### Responding to web view changes

- [UIWebViewDelegate](uikit/uiwebviewdelegate.md)
