Contents

photosReferenceImageViewer(asset:onProcessingCompletion:)

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

Declaration

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

Discussion

  • Parameters

    • 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