2019-10-19 03:37:22 +02:00
|
|
|
//
|
|
|
|
// IntentHandler.swift
|
|
|
|
// NetNewsWire iOS Intents Extension
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 10/18/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Intents
|
|
|
|
|
|
|
|
class IntentHandler: INExtension {
|
|
|
|
|
|
|
|
override func handler(for intent: INIntent) -> Any {
|
|
|
|
switch intent {
|
2019-11-15 03:11:41 +01:00
|
|
|
case is AddWebFeedIntent:
|
|
|
|
return AddWebFeedIntentHandler()
|
2019-10-19 03:37:22 +02:00
|
|
|
default:
|
|
|
|
fatalError("Unhandled intent type: \(intent)")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|