Contents

photosReferenceImageViewer(fileURL:onProcessingCompletion:)

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

Declaration

@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.

See Also

Selecting photos