From 703508383381eeae3368cd400e461eab2cf26a6b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 3 Nov 2026 15:43:23 -0800 Subject: [PATCH] Use shared NetNewsWire feed icon. --- .../TimelineCustomizerCollectionViewController.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iOS/Settings/TimelineCustomizerCollectionViewController.swift b/iOS/Settings/TimelineCustomizerCollectionViewController.swift index a426ffd10..8f2fe1bbc 100644 --- a/iOS/Settings/TimelineCustomizerCollectionViewController.swift +++ b/iOS/Settings/TimelineCustomizerCollectionViewController.swift @@ -258,12 +258,15 @@ private extension TimelineCustomizerCollectionViewController { } private func previewCell(section: Section, indexPath: IndexPath) -> MainTimelineCell { - let cell = collectionView.dequeueReusableCell(withReuseIdentifier: MainTimelineCell.reuseIdentifier, for: indexPath) as! MainTimelineCell + guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: MainTimelineCell.reuseIdentifier, for: indexPath) as? MainTimelineCell else { + assertionFailure("Expected MainTimelineCell") + return MainTimelineCell() + } cell.cellData = MainTimelineCellData(article: previewArticle, showFeedName: .byline, feedName: "The Fellowship of the Ring", byline: "J. R. R. Tolkien", - iconImage: IconImage(Assets.Images.nnwFeedIcon), + iconImage: IconImage.nnwFeedIcon, showIcon: section.showsFeedIcon, numberOfLines: AppDefaults.timelineNumberOfLines, iconSize: AppDefaults.timelineIconSize,