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

# gestureRecognizers

The system-supplied gesture recognizers for presenting a document interaction controller.

```
var gestureRecognizers: [UIGestureRecognizer] { get }
```

## Discussion

The objects in the `gestureRecognizers` array each descend from the [`UIGestureRecognizer`](/documentation/UIKit/UIGestureRecognizer) class. You can attach these gesture recognizers to the view you use to represent a document. For example, if you represent a document by name or icon in a table view cell , you can attach a document interaction controller’s gesture recognizers using code like this:

```objc
cell.contentView.gestureRecognizers = self.docInteractionController.gestureRecognizers;
```

(In this statement, the `cell` object is an instance of the [`UITableViewCell`](/documentation/UIKit/UITableViewCell) class and the `docInteractionController` instance variable points to the document interaction controller for the document named in the cell.)

With gesture recognizers so attached, a user gesture automatically initiates the appropriate action. A tap gestures initiates a preview of the associated document. A long press gesture displays the options menu relevant to the document.

The [`UIDocumentInteractionController`](/documentation/UIKit/UIDocumentInteractionController) class supports only the tap ([`UITapGestureRecognizer`](/documentation/UIKit/UITapGestureRecognizer)) and long press ([`UILongPressGestureRecognizer`](/documentation/UIKit/UILongPressGestureRecognizer)) gesture recognizers.

---

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)