mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-11 08:56:54 +01:00
53 lines
852 B
Swift
53 lines
852 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, DisplayNameProvider, UnreadCountProvider, 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, DisplayNameProvider, UnreadCountProvider, SmallIconProvider {
|
|
|
|
}
|
|
|
|
private var smartFeedIcon: UIImage = {
|
|
return AppAssets.smartFeedImage
|
|
}()
|
|
|
|
extension PseudoFeed {
|
|
var smallIcon: UIImage? {
|
|
return smartFeedIcon
|
|
}
|
|
}
|
|
|
|
#endif
|