<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarRole/editor",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11ToolbarRoleV6editorACvpZ"
  },
  "title" : "editor"
}
-->

# editor

The editor role.

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)