Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 3, 2018 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/f00ad5a9bac7a1a56b9188031514f1f9 to your computer and use it in GitHub Desktop.
Save fitomad/f00ad5a9bac7a1a56b9188031514f1f9 to your computer and use it in GitHub Desktop.
if let intent = self.intent, let shortcut = INShortcut(intent: intent) {
let voiceShortcutController = INUIAddVoiceShortcutViewController(shortcut: shortcut)
voiceShortcutController.delegate = self
present(voiceShortcutController, animated: true, completion: nil)
self.hideResponseForm()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment