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

# delegate

The toolbar’s delegate object.

## Declaration

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

## Discussion

Discussion The delegate should conform to the UIToolbarDelegate protocol. You may not set the delegate when the toolbar is managed by a navigation controller. The default value is nil.

## See Also

### Managing toolbar changes

- [UIToolbarDelegate](uikit/uitoolbardelegate.md)
