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

# editor

The editor role.

## Declaration

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

## Discussion

Discussion Use this role for a toolbar that primarily displays controls geared towards editing document-like content. In iPadOS, this will leading align the navigation title, allow for toolbar items to occupy the center of the navigation bar, and provide a custom appearance for any back button present in the toolbar.

## See Also

### Behavior-specific roles

- [browser](swiftui/toolbarrole/browser.md)
- [navigationStack](swiftui/toolbarrole/navigationstack.md)
