donate()
Donates the app intent to the system.
Declaration
@discardableResult func donate() -> IntentDonationIdentifierReturn 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.
Call this method to donate the intent synchronously, which you might do if you’re not using Swift concurrency. The system ignores any exceptions it encounters during the donation process.