Contents

ToolbarOverflowMenu

The overflow menu of a toolbar.

Declaration

nonisolated struct ToolbarOverflowMenu<Content> where Content : View

Overview

An overflow menu represents actions that are always placed in the toolbar’s overflow menu, regardless of the toolbar mode, platform, or customizability.

ContentView()
    .toolbar {
        ToolbarOverflowMenu {
            Button("Action 1") { }
            Button("Action 2") { }
        }
    }

In iOS and visionOS, this content is placed into the overflow menu in the navigation bar.

Topics

Creating a toolbar overflow menu

See Also

Populating a toolbar