<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/photosReferenceImageViewer(fileURL:onProcessingCompletion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP07_Photosb1_aB0E26photosReferenceImageViewer7fileURL22onProcessingCompletionQrAA7BindingVy10Foundation0J0VSgG_ys6ResultOyALs5Error_pGcSgtF"
  },
  "title" : "photosReferenceImageViewer(fileURL:onProcessingCompletion:)"
}
-->

# photosReferenceImageViewer(fileURL:onProcessingCompletion:)

Presents an image viewer for a given image file containing Apple Reference Image data when `fileURL` is set.

```
@MainActor @preconcurrency func photosReferenceImageViewer(fileURL: Binding<URL?>, onProcessingCompletion: ((Result<URL, any Error>) -> Void)?) -> some View
```

## Discussion

- Parameters
  - fileURL: A binding to an optional URL that refers to the file containing the Apple Reference Image image. When non-nil, the sheet will be presented.
  - onProcessingCompletion: An optional closure called when processing completes.

---

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)