---
title: UIBarPositioningDelegate
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/uibarpositioningdelegate
---

# UIBarPositioningDelegate

A set of methods that support the positioning of a bar that conforms to the UIBarPositioning protocol.

## Declaration

```swift
@MainActor protocol UIBarPositioningDelegate : NSObjectProtocol
```

## Overview

Overview Navigation bars, toolbars, and search bars all have delegates that support the UIBarPositioning protocol. The delegate can use the method of this protocol to specify the bar’s position when that bar is moved to a window. The UINavigationBarDelegate, UISearchBarDelegate, and UIToolbarDelegate protocols extend this protocol to allow for the positioning of those bars on the screen.

## Topics

### Positioning Bars

- [position(for:)](uikit/uibarpositioningdelegate/position(for:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Inherited By

- [UINavigationBarDelegate](uikit/uinavigationbardelegate.md)
- [UISearchBarDelegate](uikit/uisearchbardelegate.md)
- [UIToolbarDelegate](uikit/uitoolbardelegate.md)

## See Also

### Bars

- [UIBarItem](uikit/uibaritem.md)
- [UIBarButtonItem](uikit/uibarbuttonitem.md)
- [UIBarButtonItemGroup](uikit/uibarbuttonitemgroup.md)
- [UINavigationBar](uikit/uinavigationbar.md)
- [UISearchBar](uikit/uisearchbar.md)
- [UIToolbar](uikit/uitoolbar.md)
- [UITabBar](uikit/uitabbar.md)
- [UITabBarItem](uikit/uitabbaritem.md)
- [UIBarPositioning](uikit/uibarpositioning.md)
