<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarTitleMenu",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ToolbarTitleMenuV"
  },
  "title" : "ToolbarTitleMenu"
}
-->

# ToolbarTitleMenu

The title menu of a toolbar.

```
nonisolated struct ToolbarTitleMenu<Content> where Content : View
```

## Overview

A title menu represents common functionality that can be done on the
content represented by your app’s toolbar or navigation title. This
menu may be populated from your app’s commands like
[`saveItem`](/documentation/SwiftUI/CommandGroupPlacement/saveItem) or
[`printItem`](/documentation/SwiftUI/CommandGroupPlacement/printItem).

```
ContentView()
    .toolbar {
        ToolbarTitleMenu()
    }
```

You can provide your own set of actions to override this behavior.

```
ContentView()
    .toolbar {
        ToolbarTitleMenu {
            DuplicateButton()
            PrintButton()
        }
    }
```

In iOS and iPadOS, this will construct a menu that can be presented by
tapping the navigation title in the app’s navigation bar.

## Topics

### Creating a toolbar title menu

[`init()`](/documentation/SwiftUI/ToolbarTitleMenu/init())

Creates a toolbar title menu where actions are inferred from your
apps commands.

[`init(content: () -> Content)`](/documentation/SwiftUI/ToolbarTitleMenu/init(content:))

Creates a toolbar title menu.

## Relationships

### Conforms To

[`ToolbarContent`](/documentation/SwiftUI/ToolbarContent)

[`CustomizableToolbarContent`](/documentation/SwiftUI/CustomizableToolbarContent)

---

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)