---
title: hasLocalContents
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsfileversion/haslocalcontents
---

# hasLocalContents

Whether the version has local contents. Versions that are returned by +getNonlocalVersionsOfItemAtURL:completionHandler: do not initially have local contents. You can only access their contents, either directly via the URL or by invoking -replaceItemAtURL:options:error:, from within a coordinated read on the NSFileVersion’s URL.

## Declaration

```swift
var hasLocalContents: Bool { get }
```
