Last active
July 9, 2018 11:20
-
-
Save PattoMotto/23b0b64a3ac7c48815d8b32c6db4335d to your computer and use it in GitHub Desktop.
Handle custom Intent, full project https://github.com/neungnarakjung/CookBook-Siri-Shortcuts-Example
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
import Intents | |
class IntentHandler: INExtension { | |
override func handler(for intent: INIntent) -> Any { | |
guard intent is CookBookIntent else { | |
fatalError("Unhandled intent type: \(intent)") | |
} | |
return CookBookIntentHandler() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment