---
title: ToolbarItemAxisBehavior
framework: SwiftUI
role: symbol
role_heading: Structure
platforms: [iOS 27.1+, iPadOS 27.1+]
path: swiftui/toolbaritemaxisbehavior
---

# ToolbarItemAxisBehavior

Describes the bar axis behavior of a toolbar item.

## Declaration

```swift
struct ToolbarItemAxisBehavior
```

## Overview

Overview Use this with the axisBehavior(_:) modifier to control which bar axes a toolbar item can appear in.

## Topics

### Getting behavior options

- [automatic](swiftui/toolbaritemaxisbehavior/automatic.md)
- [horizontalOnly](swiftui/toolbaritemaxisbehavior/horizontalonly.md)
- [verticalPreferred](swiftui/toolbaritemaxisbehavior/verticalpreferred.md)

## Relationships

### Conforms To

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

## See Also

### Customizing behaviors

- [axisBehavior(_:)](swiftui/toolbarcontent/axisbehavior(_:).md)
