---
title: UIVerticalBarBehavior
framework: UIKit
role: symbol
role_heading: Enumeration
platforms: [iOS 27.1+, iPadOS 27.1+]
path: uikit/uiverticalbarbehavior
---

# UIVerticalBarBehavior

A behavior that determines whether the vertical bar is used.

## Declaration

```swift
enum UIVerticalBarBehavior
```

## Overview

Overview Return this type from preferredVerticalBarBehavior to apply the preferred behavior.

## Topics

### Specifying vertical bar behavior

- [UIVerticalBarBehavior.automatic](uikit/uiverticalbarbehavior/automatic.md)
- [UIVerticalBarBehavior.disabled](uikit/uiverticalbarbehavior/disabled.md)

### Initializers

- [init(rawValue:)](uikit/uiverticalbarbehavior/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring bars on the vertical axis

- [preferredVerticalBarBehavior](uikit/uiviewcontroller/preferredverticalbarbehavior.md)
- [childForPreferredVerticalBarBehavior](uikit/uiviewcontroller/childforpreferredverticalbarbehavior.md)
- [setNeedsUpdateOfVerticalBarConfiguration()](uikit/uiviewcontroller/setneedsupdateofverticalbarconfiguration().md)
