<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentPickerViewController/init(forOpeningContentTypes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDocumentPickerViewController(im)initForOpeningContentTypes:"
  },
  "title" : "init(forOpeningContentTypes:)"
}
-->

# init(forOpeningContentTypes:)

Creates and returns a document picker that can open the types of documents you specify.

```
convenience init(forOpeningContentTypes contentTypes: [UTType])
```

## Parameters

`contentTypes`

An array of uniform type identifiers for the document picker to display. For more information, see <doc://com.apple.documentation/documentation/UniformTypeIdentifiers>.

## Discussion

---

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)