mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-15 10:49:14 +01:00
23 lines
444 B
Swift
23 lines
444 B
Swift
//
|
|
// 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 {
|
|
case is AddWebFeedIntent:
|
|
return AddWebFeedIntentHandler()
|
|
default:
|
|
fatalError("Unhandled intent type: \(intent)")
|
|
}
|
|
}
|
|
|
|
}
|