mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-27 10:02:37 +01:00
52 lines
779 B
Swift
52 lines
779 B
Swift
//
|
|
// PseudoFeed.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Brent Simmons on 11/19/17.
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
#if os(macOS)
|
|
|
|
import AppKit
|
|
import Articles
|
|
import Account
|
|
import RSCore
|
|
|
|
protocol PseudoFeed: class, Feed, SmallIconProvider, PasteboardWriterOwner {
|
|
|
|
}
|
|
|
|
private var smartFeedIcon: RSImage = {
|
|
return RSImage(named: NSImage.smartBadgeTemplateName)!
|
|
}()
|
|
|
|
extension PseudoFeed {
|
|
|
|
var smallIcon: RSImage? {
|
|
return smartFeedIcon
|
|
}
|
|
}
|
|
#else
|
|
|
|
import Foundation
|
|
import Articles
|
|
import Account
|
|
import RSCore
|
|
|
|
protocol PseudoFeed: class, Feed, SmallIconProvider {
|
|
|
|
}
|
|
|
|
private var smartFeedIcon: UIImage = {
|
|
return AppAssets.smartFeedImage
|
|
}()
|
|
|
|
extension PseudoFeed {
|
|
var smallIcon: UIImage? {
|
|
return smartFeedIcon
|
|
}
|
|
}
|
|
|
|
#endif
|