donate()
Donates the app intent to the system asynchronously.
Declaration
@discardableResult func donate() async throws -> IntentDonationIdentifierMentioned in
Return Value
An opaque identifier you can use to manage the donation later using an IntentDonationManager type.
Discussion
When someone interacts with your app’s interface, create an app intent for the interaction and call this method. Donating intents helps the system predict future actions and improve the overall system experience. Don’t donate app intents that the system creates and asks you to handle.