---
title: "editVoiceShortcutViewController(_:didUpdate:error:)"
framework: IntentsUI
role: symbol
role_heading: Instance Method
platforms: [iOS 12.0+, iPadOS 12.0+, Mac Catalyst 13.1+, macOS 12.0+, visionOS 1.0+]
path: "intentsui/inuieditvoiceshortcutviewcontrollerdelegate/editvoiceshortcutviewcontroller(_:didupdate:error:)"
---

# editVoiceShortcutViewController(_:didUpdate:error:)

Tells the delegate the user updated the shortcut.

## Declaration

```swift
func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didUpdate voiceShortcut: INVoiceShortcut?, error: (any Error)?)
```

## Parameters

- `controller`: The view controller calling this method.
- `voiceShortcut`: The updated shortcut; otherwise, nil when an error occurred updating the shortcut.
- `error`: A error object when an error occurred updating the shortcut; otherwise, nil.

## Discussion

Discussion The system calls this method after the user re-records the invocation phrase for the shortcut. If your app displays the phrase, the app should update its screen to show the new phrase by retrieving the phrase text from the invocationPhrase property on voiceShortcut.

## See Also

### Handling Shortcut Changes

- [editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)](intentsui/inuieditvoiceshortcutviewcontrollerdelegate/editvoiceshortcutviewcontroller(_:diddeletevoiceshortcutwithidentifier:).md)
