---
title: readableContentTypes
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/referencefiledocument/readablecontenttypes
---

# readableContentTypes

The file and data types that the document reads from.

## Declaration

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

## Discussion

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 property in addition to this property.

## See Also

### Reading a document

- [init(configuration:)](swiftui/referencefiledocument/init(configuration:).md)
- [ReferenceFileDocument.ReadConfiguration](swiftui/referencefiledocument/readconfiguration.md)
