<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DocumentReadConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI25DocumentReadConfigurationV"
  },
  "title" : "DocumentReadConfiguration"
}
-->

# DocumentReadConfiguration

The context SwiftUI passes to
[`reader(configuration:)`](/documentation/SwiftUI/ReadableDocument/reader(configuration:)).

```
struct DocumentReadConfiguration
```

## Overview

Contains the [`contentType`](/documentation/SwiftUI/DocumentReadConfiguration/contentType) of the file being read (one of the
document’s [`readableContentTypes`](/documentation/SwiftUI/ReadableDocument/readableContentTypes)). Use it to
choose the correct deserialization strategy when a document
supports multiple formats.

Access this type through the
[`ReadableDocument.ReadConfiguration`](/documentation/SwiftUI/ReadableDocument/ReadConfiguration) typealias.

## Topics

### Accessing read properties

[`var contentType: UTType`](/documentation/SwiftUI/DocumentReadConfiguration/contentType)

The content type of the file being read.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

---

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)