<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuickLookUI",
  "identifier" : "/documentation/QuickLookUI/QLPreviewItem/previewItemURL",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Quick Look UI"
    ],
    "preciseIdentifier" : "c:objc(pl)QLPreviewItem(py)previewItemURL"
  },
  "title" : "previewItemURL"
}
-->

# previewItemURL

The URL of the item to preview.

```
var previewItemURL: URL! { get }
```

## Discussion

<doc://com.apple.documentation/documentation/QuickLook/QLPreviewController> uses this property to get an item’s URL. In typical use, you’d implement a getter method in your preview item class to provide this value.

The value of this property must be a file-type URL.

If the item isn’t available for preview, this property’s getter method should return `nil`. In this case, the <doc://com.apple.documentation/documentation/QuickLook/QLPreviewController> displays a “loading” view. Use <doc://com.apple.documentation/documentation/QuickLook/QLPreviewController/refreshCurrentPreviewItem()> to reload the item once the URL content is available.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)