---
title: "documentBrowserContextMenu(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/scene/documentbrowsercontextmenu(_:)"
---

# documentBrowserContextMenu(_:)

Adds to a DocumentGroupLaunchScene actions that accept a list of selected files as their parameter.

## Declaration

```swift
@MainActor @preconcurrency func documentBrowserContextMenu(@ContentBuilder _ menu: @escaping ([URL]?) -> some View) -> some Scene

```

## Parameters

- `menu`: Items representing the content of the menu.

## Discussion

Discussion The actions are displayed in the document browser navigation bar when a document browser is in Select mode, and also added to context menu for the file items.
