<!--
{
  "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/ReferenceFileDocumentConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI34ReferenceFileDocumentConfigurationV"
  },
  "title" : "ReferenceFileDocumentConfiguration"
}
-->

# ReferenceFileDocumentConfiguration

The properties of an open reference file document.

```
@MainActor @preconcurrency struct ReferenceFileDocumentConfiguration<Document> where Document : ReferenceFileDocument
```

## Overview

You receive an instance of this structure when you create a
[`DocumentGroup`](/documentation/SwiftUI/DocumentGroup) with a reference file type. Use it to access the
document in your viewer or editor.

## Topics

### Getting and setting the document

[`var document: Document`](/documentation/SwiftUI/ReferenceFileDocumentConfiguration/document)

The current document model.

[`var $document: ObservedObject<Document>.Wrapper`](/documentation/SwiftUI/ReferenceFileDocumentConfiguration/$document)

### Getting document properties

[`var fileURL: URL?`](/documentation/SwiftUI/ReferenceFileDocumentConfiguration/fileURL)

The URL of the open file document.

[`var isEditable: Bool`](/documentation/SwiftUI/ReferenceFileDocumentConfiguration/isEditable)

A Boolean that indicates whether you can edit the document.



---

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)