protocol
ExtensionHostNotifying
NewvisionOSpublic protocol ExtensionHostNotifying : AnyObject
Declaration
@MainActor public protocol ExtensionHostNotifying : AnyObject {
@MainActor func notifyBeganGenerating()
@MainActor func notifyEndedGenerating()
@MainActor func notifyReadyForTermination()
@MainActor func notifyFailure()
@MainActor func notifyBeganGeneratingEnvironment(withUUID id: UUID)
}
func
View.photosSharedAlbumPostingSheet
NewiOSmacOSnonisolated public func photosSharedAlbumPostingSheet(isPresented: Binding<Bool>, items: [PhotosPickerItem], defaultAlbumIdentifier: String? = nil, photoLibrary: PHPhotoLibrary, completion: ((Result<String, any Error>) -> Void)? = nil) -> some View
Presents an "Add to Shared Album" sheet that allows the user to post the given items to a shared album.
Parameters
isPresented- The binding to whether the sheet should be shown.
items- The items to be posted to the shared album.
defaultAlbumIdentifier- Identifier for the shared album to be pre-selected. If none provided user can manually choose the shared album in UI.
photoLibrary- Library to choose from.
completion- Called with the result on completion of the request.
func
View.photosSharedAlbumPostingSheet
NewiOSmacOSnonisolated public func photosSharedAlbumPostingSheet(isPresented: Binding<Bool>, items: [PHPickerResult], defaultAlbumIdentifier: String? = nil, photoLibrary: PHPhotoLibrary, completion: ((Result<String, any Error>) -> Void)? = nil) -> some View
Presents an "Add to Shared Album" sheet that allows the user to post the given items to a shared album.
Parameters
isPresented- The binding to whether the sheet should be shown.
items- The items to be posted to the shared album.
defaultAlbumIdentifier- Identifier for the shared album to be pre-selected. If none provided user can manually choose the shared album in UI.
photoLibrary- Library to choose from.
completion- Called with the result on completion of the request.