<!--
{
  "availability" : [
    "iOS: 14.0.0 - 27.2.0",
    "iPadOS: 14.0.0 - 27.2.0",
    "macCatalyst: 14.0.0 - 27.2.0",
    "macOS: 11.0.0 - 27.2.0",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ReferenceFileDocument/readableContentTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21ReferenceFileDocumentP20readableContentTypesSay22UniformTypeIdentifiers6UTTypeVGvpZ"
  },
  "title" : "readableContentTypes"
}
-->

# readableContentTypes

The file and data types that the document reads from.

```
static var readableContentTypes: [UTType] { get }
```

## Discussion

Define this list to indicate the content types that your document can
read. By default, SwiftUI assumes that your document can also write
the same set of content types. If you need to indicate a different set
of types for writing files, define the [`writableContentTypes`](/documentation/SwiftUI/ReferenceFileDocument/writableContentTypes)
property in addition to this property.

---

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)