<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macCatalyst: 18.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Scene/documentBrowserContextMenu(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ScenePAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAA4ViewRd__lF"
  },
  "title" : "documentBrowserContextMenu(_:)"
}
-->

# documentBrowserContextMenu(_:)

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

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

## Parameters

`menu`

Items representing the content of the menu.

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

---

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)