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
PHPickerViewControlleronProcessingCompletion: An optional closure called when processing completes.
See Also
Selecting photos
PhotosPickerphotosPicker(isPresented:selection:matching:preferredItemEncoding:)photosPicker(isPresented:selection:matching:preferredItemEncoding:photoLibrary:)photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:)photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:photoLibrary:)photosPickerAccessoryVisibility(_:edges:)photosPickerDisabledCapabilities(_:)photosPickerSearchText(_:)photosPickerStyle(_:)photosPickerMetadataOptions(_:)photosSharedAlbumCreationSheet(isPresented:defaultTitle:defaultSharingPolicy:photoLibrary:onCompletion:)photosSharedAlbumCustomizationSheet(isPresented:albumIdentifier:photoLibrary:onCompletion:)photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:)photosReferenceImageViewer(asset:onProcessingCompletion:)photosReferenceImageViewer(fileURL:onProcessingCompletion:)