---
title: writableContentTypes
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/filedocument/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(configuration:)](swiftui/filedocument/filewrapper(configuration:).md)
- [FileDocument.WriteConfiguration](swiftui/filedocument/writeconfiguration.md)
