Contents

photosReferenceImageViewer(pickerResult:onProcessingCompletion:)

Presents an image viewer for the resulting image containing Apple Reference Image data from PHPickerViewController when isPresented is set to true.

Declaration

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

Discussion

  • Parameters

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

    • pickerResult: The result from a PHPickerViewController

    • onProcessingCompletion: An optional closure called when processing completes.

See Also

Selecting photos