<!--
{
  "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/writableContentTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21ReferenceFileDocumentP20writableContentTypesSay22UniformTypeIdentifiers6UTTypeVGvpZ"
  },
  "title" : "writableContentTypes"
}
-->

# writableContentTypes

The file types that the document supports saving or exporting to.

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

## Discussion

By default, SwiftUI assumes that your document reads and writes the
same set of content types. Only define this property if you need to
indicate a different set of types for writing files. Otherwise, the
default implementation of this property returns the list that you
specify in your implementation of [`readableContentTypes`](/documentation/SwiftUI/ReferenceFileDocument/readableContentTypes).

---

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)