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

# delegate

The navigation bar’s delegate object.

## Declaration

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

## Discussion

Discussion The delegate must conform to the UINavigationBarDelegate protocol. The default value is nil. If the navigation bar was created by a navigation controller and is being managed by that object, you must not change the value of this property. A navigation controller acts as the delegate for the navigation bar it creates.

## See Also

### Responding to navigation bar changes

- [UINavigationBarDelegate](uikit/uinavigationbardelegate.md)
