From 5be4c2b54388997077f203249cc82e4ba0ebd481 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 17 Dec 2017 10:51:05 -0800 Subject: [PATCH] Make PseudoFeed conform to SmallIconProvider. --- Evergreen/SmartFeeds/PseudoFeed.swift | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Evergreen/SmartFeeds/PseudoFeed.swift b/Evergreen/SmartFeeds/PseudoFeed.swift index bcedcf4ca..aca8b0c4a 100644 --- a/Evergreen/SmartFeeds/PseudoFeed.swift +++ b/Evergreen/SmartFeeds/PseudoFeed.swift @@ -10,9 +10,20 @@ import Foundation import Data import RSCore -protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider { +protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconProvider { } +private var smartFeedIcon: NSImage = { + return NSImage(named: NSImage.Name.smartBadgeTemplate)! +}() +extension PseudoFeed { + + var smallIcon: NSImage? { + get { + return smartFeedIcon + } + } +}