---
title: writableContentTypes
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/referencefiledocument/writablecontenttypes
---

# writableContentTypes

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

## Declaration

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

## Discussion

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.

## See Also

### Writing a document

- [fileWrapper(snapshot:configuration:)](swiftui/referencefiledocument/filewrapper(snapshot:configuration:).md)
- [ReferenceFileDocument.WriteConfiguration](swiftui/referencefiledocument/writeconfiguration.md)
