---
title: contentVersion
framework: fileprovider
role: symbol
role_heading: Instance Property
path: fileprovider/nsfileprovideritemversion/contentversion
---

# contentVersion

An opaque object used to track versions of the item’s content.

## Declaration

```swift
var contentVersion: Data { get }
```

## Discussion

Discussion If the system stores a local copy of an item’s content, it downloads a new copy when the contentVersion changes. The content version also invalidates the system’s thumbnail cache. The system considers the file’s resource fork part of the file’s content. The version changes when either the data fork or the resource fork changes. The version data object must be no longer than 128 bytes.

## See Also

### Accessing Version Data

- [beforeFirstSyncComponent](fileprovider/nsfileprovideritemversion/beforefirstsynccomponent.md)
- [metadataVersion](fileprovider/nsfileprovideritemversion/metadataversion.md)
