Created
September 29, 2018 19:35
-
-
Save vialyx/23748cdfd7b94b98ef8da004d29e0add to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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