Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created September 29, 2018 19:35
Show Gist options
  • Save vialyx/23748cdfd7b94b98ef8da004d29e0add to your computer and use it in GitHub Desktop.
Save vialyx/23748cdfd7b94b98ef8da004d29e0add to your computer and use it in GitHub Desktop.
// MARK: - INUIAddVoiceShortcutViewControllerDelegate
extension TransportListViewController: INUIAddVoiceShortcutViewControllerDelegate {
@available(iOS 12.0, *)
func addVoiceShortcutViewController(_ controller: INUIAddVoiceShortcutViewController, didFinishWith voiceShortcut: INVoiceShortcut?, error: Error?) {
print("addVoiceShortcutViewController didFinishWith voiceShortcut: \(String(describing: voiceShortcut)) error: \(String(describing: error))")
setupIntents()
controller.dismiss(animated: true, completion: nil)
}
@available(iOS 12.0, *)
func addVoiceShortcutViewControllerDidCancel(_ controller: INUIAddVoiceShortcutViewController) {
print("addVoiceShortcutViewControllerDidCancel")
controller.dismiss(animated: true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment