Instantly share code, notes, and snippets.

Embed
What would you like to do?
class IntentHandler: INExtension {
override func handler(for intent: INIntent) -> Any {
guard intent is CheckMyGitHubIntent else {
fatalError("Unhandled intent type: \(intent)")
}
return CheckMyGitHubIntentHandler()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment