<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentBrowserAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDocumentBrowserAction"
  },
  "title" : "UIDocumentBrowserAction"
}
-->

# UIDocumentBrowserAction

A custom action that you can create and add to a document browser’s Edit menu or navigation bar.

```
class UIDocumentBrowserAction
```

## Overview

By default, the system provides a number of standard actions (copy, move, rename, delete, and share). To add custom actions, assign an array of [`UIDocumentBrowserAction`](/documentation/UIKit/UIDocumentBrowserAction) objects to the browser’s [`customActions`](/documentation/UIKit/UIDocumentBrowserViewController/customActions) property.

Document browser actions can appear in either the navigation bar or the Edit menu.

- *Navigation bar* actions appear in the navigation bar when the user places the browser into the Select mode.
- *Menu* actions appear in the Edit Menu when the user long presses on a document or folder.

When triggered, these actions are passed the URLs of the currently selected items.

## Topics

### Creating and configuring actions

[`init(identifier:localizedTitle:availability:handler:)`](/documentation/UIKit/UIDocumentBrowserAction/init(identifier:localizedTitle:availability:handler:))

Instantiates and returns a new browser action item.

[`image`](/documentation/UIKit/UIDocumentBrowserAction/image)

The action’s image displayed in the navigation bar.

[`supportedContentTypes`](/documentation/UIKit/UIDocumentBrowserAction/supportedContentTypes)

An array of uniform type identifiers that define the types of documents that the action supports.

[`supportsMultipleItems`](/documentation/UIKit/UIDocumentBrowserAction/supportsMultipleItems)

A Boolean value that determines whether the action can be triggered on more than one document at a time.

### Accessing activity data

[`identifier`](/documentation/UIKit/UIDocumentBrowserAction/identifier)

The action’s unique identifier.

[`localizedTitle`](/documentation/UIKit/UIDocumentBrowserAction/localizedTitle)

The title that appears in the menu or navigation bar.

[`availability`](/documentation/UIKit/UIDocumentBrowserAction/availability-swift.property)

A value that defines where the action can appear (in the Edit Menu, the navigation bar, or both).

[`UIDocumentBrowserAction.Availability`](/documentation/UIKit/UIDocumentBrowserAction/Availability-swift.struct)

Values that determine where the action can appear in the document browser.

## See Also

[`UIDocumentBrowserViewController`](/documentation/UIKit/UIDocumentBrowserViewController)

A view controller for browsing and performing actions on documents that you store locally and in the cloud.



---

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)