---
title: fileType
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/documentreadingoptionkey/filetype
---

# fileType

The file type.

## Declaration

```swift
static let fileType: NSAttributedString.DocumentReadingOptionKey
```

## Discussion

Discussion The value of this attribute is an NSString object indicating a document type to be forced when loading the document, specified as a UTI string; mutually exclusive with documentType.

## See Also

### Getting the document options

- [baseURL](foundation/nsattributedstring/documentreadingoptionkey/baseurl.md)
- [characterEncoding](foundation/nsattributedstring/documentreadingoptionkey/characterencoding.md)
- [defaultAttributes](foundation/nsattributedstring/documentreadingoptionkey/defaultattributes.md)
- [documentType](foundation/nsattributedstring/documentreadingoptionkey/documenttype.md)
- [readAccessURL](foundation/nsattributedstring/documentreadingoptionkey/readaccessurl.md)
- [textEncodingName](foundation/nsattributedstring/documentreadingoptionkey/textencodingname.md)
- [textSizeMultiplier](foundation/nsattributedstring/documentreadingoptionkey/textsizemultiplier.md)
- [timeout](foundation/nsattributedstring/documentreadingoptionkey/timeout.md)
- [webPreferences](foundation/nsattributedstring/documentreadingoptionkey/webpreferences.md)
- [webResourceLoadDelegate](foundation/nsattributedstring/documentreadingoptionkey/webresourceloaddelegate.md)
