<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentBrowserViewControllerDelegate/documentBrowser(_:didImportDocumentAt:toDestinationURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIDocumentBrowserViewControllerDelegate(im)documentBrowser:didImportDocumentAtURL:toDestinationURL:"
  },
  "title" : "documentBrowser(_:didImportDocumentAt:toDestinationURL:)"
}
-->

# documentBrowser(_:didImportDocumentAt:toDestinationURL:)

Tells the delegate that a document has been successfully imported.

```
optional func documentBrowser(_ controller: UIDocumentBrowserViewController, didImportDocumentAt sourceURL: URL, toDestinationURL destinationURL: URL)
```

## Parameters

`controller`

The document browser that performed the import action.

`sourceURL`

The document’s original URL.

`destinationURL`

The document’s URL after the import.

## Discussion

To open the document as soon as it’s imported:

1. Open a new [`UIDocument`](/documentation/UIKit/UIDocument) subclass for the document (or use a file presenter and file coordination to access the document).
2. Create a view controller to display the document.
3. Present that view controller modally.

---

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)