Contents

photosReferenceImageViewer(pickerItem:onProcessingCompletion:)

Presents an image viewer for an image containing Apple Reference Image data selected from the Photos picker when isPresented is set to true.

Declaration

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

Discussion

  • Parameters

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

    • pickerItem: The PhotosPickerItem returned from a SwiftUI Photos picker.

    • onProcessingCompletion: An optional closure called when processing completes.

See Also

Selecting photos