photosReferenceImageViewer(asset:onProcessingCompletion:)
Presents an image viewer for an asset in a photo library that contains Apple Reference Image data when isPresented is set to true.
Declaration
@MainActor @preconcurrency func photosReferenceImageViewer(asset: Binding<PHAsset?>, onProcessingCompletion: ((Result<PHAsset, any Error>) -> Void)?) -> some View
Discussion
Parameters
isPresented: A binding that determines when this view is presented.
asset: A
PHAssetthat is an image that contains Apple Reference Image data.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(fileURL:onProcessingCompletion:)photosReferenceImageViewer(pickerItem:onProcessingCompletion:)