---
title: delegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidocumentbrowserviewcontroller/delegate
---

# delegate

The document browser’s delegate.

## Declaration

```swift
weak var delegate: (any UIDocumentBrowserViewControllerDelegate)? { get set }
```

## Discussion

Discussion The delegate object must implement the UIDocumentBrowserViewControllerDelegate protocol.

## See Also

### Responding to browser events

- [UIDocumentBrowserViewControllerDelegate](uikit/uidocumentbrowserviewcontrollerdelegate.md)
- [importDocument(at:nextToDocumentAt:mode:completionHandler:)](uikit/uidocumentbrowserviewcontroller/importdocument(at:nexttodocumentat:mode:completionhandler:).md)
