NetNewsWire/Shared/SmartFeeds/PseudoFeed.swift

53 lines
852 B
Swift
Raw Normal View History

2017-11-19 22:57:42 +01:00
//
// PseudoFeed.swift
2018-08-29 07:18:24 +02:00
// NetNewsWire
2017-11-19 22:57:42 +01:00
//
// Created by Brent Simmons on 11/19/17.
// Copyright © 2017 Ranchero Software. All rights reserved.
//
#if os(macOS)
import AppKit
import Articles
import Account
2017-11-19 22:57:42 +01:00
import RSCore
protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconProvider, PasteboardWriterOwner {
2017-11-19 22:57:42 +01:00
}
private var smartFeedIcon: RSImage = {
2017-11-19 22:57:42 +01:00
return RSImage(named: NSImage.smartBadgeTemplateName)!
}()
2017-11-19 22:57:42 +01:00
extension PseudoFeed {
var smallIcon: RSImage? {
return smartFeedIcon
}
}
#else
import Foundation
import Articles
import Account
import RSCore
protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconProvider {
}
private var smartFeedIcon: UIImage = {
return AppAssets.smartFeedImage
}()
extension PseudoFeed {
var smallIcon: UIImage? {
return smartFeedIcon
}
}
#endif