---
title: contentType
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspasteboard/detectedmetadata/contenttype
---

# contentType

The content type of a file that the data detection system identifies when the pasteboard contains a file URL.

## Declaration

```swift
var contentType: UTType? { get }
```

## See Also

### Accessing metadata

- [metadataTypes](appkit/nspasteboard/detectedmetadata/metadatatypes.md)
