Contents

photosReferenceImageViewer(asset:onProcessingCompletion:)

Presents an image viewer for an asset in a photo library that contains Apple Reference Image data when isPresented is set to true.

Declaration

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

Discussion

  • Parameters

    • isPresented: A binding that determines when this view is presented.

    • asset: A PHAsset that is an image that contains Apple Reference Image data.

    • onProcessingCompletion: An optional closure called when processing completes.

See Also

Selecting photos