<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/IntentsUI/INUIEditVoiceShortcutViewControllerDelegate/editVoiceShortcutViewController(_:didUpdate:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IntentsUI"
    ],
    "preciseIdentifier" : "c:objc(pl)INUIEditVoiceShortcutViewControllerDelegate(im)editVoiceShortcutViewController:didUpdateVoiceShortcut:error:"
  },
  "title" : "editVoiceShortcutViewController(_:didUpdate:error:)"
}
-->

# editVoiceShortcutViewController(_:didUpdate:error:)

Tells the delegate the user updated the shortcut.

```
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

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`](/documentation/Intents/INVoiceShortcut/invocationPhrase) property on voiceShortcut.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)