mastodon-app-ufficiale-ipho.../MastodonIntent/IntentHandler.swift

24 lines
573 B
Swift
Raw Permalink Normal View History

2021-07-26 14:09:23 +02:00
//
// IntentHandler.swift
// MastodonIntent
//
// Created by Cirno MainasuK on 2021-7-26.
//
import Intents
class IntentHandler: INExtension {
override func handler(for intent: INIntent) -> Any {
// This is the default implementation. If you want different objects to handle different intents,
// you can override this and return the handler you want for that particular intent.
switch intent {
case is SendPostIntent:
return SendPostIntentHandler()
default:
return self
}
}
}