Skip to content

Instantly share code, notes, and snippets.

@PattoMotto
Last active July 9, 2018 11:20
Show Gist options
  • Save PattoMotto/23b0b64a3ac7c48815d8b32c6db4335d to your computer and use it in GitHub Desktop.
Save PattoMotto/23b0b64a3ac7c48815d8b32c6db4335d to your computer and use it in GitHub Desktop.
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