---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/toolbarrole/automatic
---

# automatic

The automatic role.

## Declaration

```swift
static var automatic: ToolbarRole { get }
```

## Discussion

Discussion In iOS, tvOS, and watchOS this resolves to the navigationStack role. In macOS, this resolves to the editor role.
