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

# automatic

The automatic axis behavior.

## Declaration

```swift
static let automatic: ToolbarItemAxisBehavior
```

## Discussion

Discussion The system infers the supported axes based on the content type of the item. Image items support both axes; text and custom view items support only the horizontal axis.

## See Also

### Getting behavior options

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