---
title: UIBarPosition.top
framework: uikit
role: symbol
role_heading: Case
path: uikit/uibarposition/top
---

# UIBarPosition.top

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

## Declaration

```swift
case top
```

## Discussion

Discussion The system uses this as a hint to draw directional decoration accordingly. For example, any shadow would be drawn below the bar. Instances of UIToolbar do not appear with this position on iPhone, but they can on iPad.

## See Also

### Constants

- [UIBarPosition.any](uikit/uibarposition/any.md)
- [UIBarPosition.bottom](uikit/uibarposition/bottom.md)
- [UIBarPosition.topAttached](uikit/uibarposition/topattached.md)
