editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)
Tells the delegate the user deleted the shortcut.
Declaration
func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didDeleteVoiceShortcutWithIdentifier deletedVoiceShortcutIdentifier: UUID)Parameters
- controller:
The view controller calling this method.
- deletedVoiceShortcutIdentifier:
The identifier of the shortcut that the user deleted.
Discussion
After the user deletes a shortcut, the shortcut is no longer available to Siri. Your app should reflect this change by displaying an INUIAddVoiceShortcutButton in the view for the action. The button lets the user know the action doesn’t have a shortcut, and provides the option to add one.