<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarPosition",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIBarPosition"
  },
  "title" : "UIBarPosition"
}
-->

# UIBarPosition

Constants to identify the position of a bar.

```
enum UIBarPosition
```

## Topics

### Constants

[`UIBarPositionAny`](/documentation/UIKit/UIBarPosition/any)

Specifies that the position is unspecified.

[`UIBarPositionBottom`](/documentation/UIKit/UIBarPosition/bottom)

Specifies that the bar is at the bottom of its containing view.

[`UIBarPositionTop`](/documentation/UIKit/UIBarPosition/top)

Specifies that the bar is at the top of its containing view.

[`UIBarPositionTopAttached`](/documentation/UIKit/UIBarPosition/topAttached)

Specifies that the bar is at the top of the screen, as well as its containing view.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)