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
PhotosPickerItemreturned from a SwiftUI Photos picker.onProcessingCompletion: 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:)