sharingService(_:didFailToShareItems:error:)
Invoked when the sharing service encountered an error when sharing items.
Declaration
@MainActor optional func sharingService(_ sharingService: NSSharingService, didFailToShareItems items: [Any], error: any Error)Parameters
- sharingService:
The sharing service.
- items:
The items being shared.
- error:
The error that was encountered when trying to share the item. If the error is Nsusercancellederror Swift.var, the user simply cancelled the error.