<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHReferenceImageInfo/imageContainsReferenceImageData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "s:6Photos20PHReferenceImageInfoC022imageContainsReferenceC4DataSbvp"
  },
  "title" : "imageContainsReferenceImageData"
}
-->

# imageContainsReferenceImageData

Returns true if the file or photo library asset used to construct this object contains Apple Reference Image data.

```
var imageContainsReferenceImageData: Bool { get }
```

## Discussion

Use this property to determine if the asset contains Apple Reference Image data that can be processed and/or viewed using `View/photosReferenceImageViewer`.
If the input was not an image, or does not contain Apple Reference Image data, this returns false.

The first time this property is accessed, the image metadata from the file or from the photo library is read to determine if the image contains Apple Reference Image.
Consider wrapping it in a `Task` to avoid blocking the main thread while the image metadata is read.

When this property returns false, you should hide any controls that would show the Apple Reference Image viewer.
For example, Preview hides the “Show Reference Image” button in its inspector when viewing an image file that does not contain Apple Reference Image.

visionOS does not support viewing Apple Reference Image data. For iPad apps on visionOS, this property will always return false.

---

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)