<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarPositioningDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIBarPositioningDelegate"
  },
  "title" : "UIBarPositioningDelegate"
}
-->

# UIBarPositioningDelegate

A set of methods that support the positioning of a bar that conforms to the [`UIBarPositioning`](/documentation/UIKit/UIBarPositioning) protocol.

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

## Overview

Navigation bars, toolbars, and search bars all have delegates that support the [`UIBarPositioning`](/documentation/UIKit/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`](/documentation/UIKit/UINavigationBarDelegate), [`UISearchBarDelegate`](/documentation/UIKit/UISearchBarDelegate), and [`UIToolbarDelegate`](/documentation/UIKit/UIToolbarDelegate) protocols extend this protocol to allow for the positioning of those bars on the screen.

## Topics

### Positioning Bars

[`position(for:)`](/documentation/UIKit/UIBarPositioningDelegate/position(for:))

Asks the delegate for the position of the specified bar in its new window.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)