From 57fa9f019ef6172addf4f2b9fb66bde2fbd52d53 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 22 Jan 2026 16:26:27 -0800
Subject: [PATCH 01/21] Update appcast for 7.0b5.
---
Appcasts/netnewswire-beta.xml | 57 ++++++++---------------------------
1 file changed, 13 insertions(+), 44 deletions(-)
diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml
index 114940635..8932dd926 100644
--- a/Appcasts/netnewswire-beta.xml
+++ b/Appcasts/netnewswire-beta.xml
@@ -6,6 +6,19 @@
Most recent NetNewsWire changes with links to updates.
en
+ -
+ NetNewsWire 7.0b5
+
+ Decreased the minimum size of the sidebar
+ Fixed two causes of a bug where small images would sometimes display as much larger than they should be
+
+ ]]>
+ Thu, 22 Jan 2026 15:45:00 -0800
+
+ 26.0
+
+
-
NetNewsWire 7.0b4
26.0
- -
- NetNewsWire 7.0b3
-
- Fixed bug with persisting the theme selection
- Fixed crash adding a Feedly account
- Fixed (we think) a crash that could happen during iCloud syncing
-
- ]]>
- Sat, 10 Jan 2026 10:30:00 -0800
-
- 26.0
-
-
- -
- NetNewsWire 7.0b2
-
- Fixed crash when downloading a theme
- Fixed hiding read articles (the toggle wasn’t toggling, now it is)
-
- ]]>
- Fri, 09 Jan 2026 08:55:00 -0800
-
- 26.0
-
-
- -
- NetNewsWire 7.0b1
- Besides the changes listed, there are many under-the-hood changes affecting all parts of the app. Bugs could appear anywhere! Please report anything you find to our bug tracker or to the Beta Testing topic in the Discourse forum.
-
- - Adopted Liquid Glass UI
- - Adopted Swift 6 structured concurrency
- - Improved window state restoration when sidebar is collapsed
- - Added custom About window
- - Changed link in the Help from Slack to Discourse
-
- ]]>
- Thu, 08 Jan 2026 11:00:00 -0800
-
- 26.0
-
-
-
NetNewsWire 6.2.1
Date: Thu, 22 Jan 2026 16:26:39 -0800
Subject: [PATCH 02/21] Use full path for each copy/paste.
---
Technotes/HowToDoMacSparkleRelease.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Technotes/HowToDoMacSparkleRelease.markdown b/Technotes/HowToDoMacSparkleRelease.markdown
index 9490ba819..4eda8fb66 100644
--- a/Technotes/HowToDoMacSparkleRelease.markdown
+++ b/Technotes/HowToDoMacSparkleRelease.markdown
@@ -48,7 +48,7 @@ Update Appcast on main branch
Update file size - length
Run xmllint on appcast
- xmllint --noout netnewswire-beta.xml
+xmllint --noout ~/Projects/nnw/main/Appcasts/netnewswire-beta.xml
Upload appcast
Commit and push git change
From 5db83e339bc09f28ce78100920ea26ed2900d299 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 22 Jan 2026 16:27:18 -0800
Subject: [PATCH 03/21] Reload cells instead of reconfiguring to fix crash due
to animated apply races.
---
.../MainFeedCollectionViewController.swift | 16 +++++++--------
.../MainTimelineViewController.swift | 20 +++++++++----------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/iOS/MainFeed/MainFeedCollectionViewController.swift b/iOS/MainFeed/MainFeedCollectionViewController.swift
index 63af59ec0..59790cc89 100644
--- a/iOS/MainFeed/MainFeedCollectionViewController.swift
+++ b/iOS/MainFeed/MainFeedCollectionViewController.swift
@@ -573,22 +573,22 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
as? MainFeedCollectionHeaderReusableView
}
- private func reconfigureVisibleCells() {
+ private func reloadAllVisibleCells() {
let visibleIndexPaths = collectionView.indexPathsForVisibleItems
let itemIdentifiers = visibleIndexPaths.compactMap { dataSource.itemIdentifier(for: $0) }
- reconfigureCells(itemIdentifiers) { [weak self] in
+ reloadCells(itemIdentifiers) { [weak self] in
self?.restoreSelectionIfNecessary(adjustScroll: false)
}
}
- private func reconfigureCells(_ items: [SidebarItemNode], completion: (() -> Void)? = nil) {
+ private func reloadCells(_ items: [SidebarItemNode], completion: (() -> Void)? = nil) {
guard !items.isEmpty else {
completion?()
return
}
var snapshot = dataSource.snapshot()
- snapshot.reconfigureItems(items)
+ snapshot.reloadItems(items)
dataSource.apply(snapshot, animatingDifferences: false) {
completion?()
}
@@ -608,7 +608,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
@objc func preferredContentSizeCategoryDidChange() {
IconImageCache.shared.emptyCache()
- reconfigureVisibleCells()
+ reloadAllVisibleCells()
}
@objc func unreadCountDidChange(_ note: Notification) {
@@ -634,7 +634,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
return sidebarItemNode
}
- reconfigureCells(itemsToReconfigure)
+ reloadCells(itemsToReconfigure)
}
@objc func feedSettingDidChange(_ note: Notification) {
@@ -647,7 +647,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
}
@objc func faviconDidBecomeAvailable(_ note: Notification) {
- reconfigureVisibleCells()
+ reloadAllVisibleCells()
}
@objc func feedIconDidBecomeAvailable(_ note: Notification) {
@@ -665,7 +665,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
return sidebarItemNode
}
- reconfigureCells(itemsToReconfigure)
+ reloadCells(itemsToReconfigure)
}
// MARK: - Actions
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index f56174eb6..006e906a8 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -626,7 +626,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
let visibleArticles = indexPaths.compactMap { dataSource.itemIdentifier(for: $0) }
let visibleUpdatedArticles = visibleArticles.filter { articleIDs.contains($0.articleID) }
- reconfigureCells(visibleUpdatedArticles)
+ reloadCells(visibleUpdatedArticles)
}
@objc func feedIconDidBecomeAvailable(_ note: Notification) {
@@ -668,7 +668,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
}
return nil
}
- reconfigureCells(articlesToReload)
+ reloadCells(articlesToReload)
}
@objc func faviconDidBecomeAvailable(_ note: Notification) {
@@ -702,7 +702,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
}
return nil
}
- reconfigureCells(articlesToReload)
+ reloadCells(articlesToReload)
}
func userDefaultsDidChange() {
@@ -711,14 +711,14 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
if self.numberOfTextLines != AppDefaults.shared.timelineNumberOfLines || self.iconSize != AppDefaults.shared.timelineIconSize {
self.numberOfTextLines = AppDefaults.shared.timelineNumberOfLines
self.iconSize = AppDefaults.shared.timelineIconSize
- self.reconfigureVisibleCells()
+ self.reloadAllVisibleCells()
}
self.updateToolbar()
}
@objc func contentSizeCategoryDidChange(_ note: Notification) {
Self.logger.debug("MainTimelineViewController: contentSizeCategoryDidChange")
- reconfigureVisibleCells()
+ reloadAllVisibleCells()
}
@objc func displayNameDidChange(_ note: Notification) {
@@ -739,10 +739,10 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
// MARK: - Reloading
func queueReloadAvailableCells() {
- CoalescingQueue.standard.add(self, #selector(reconfigureVisibleCells))
+ CoalescingQueue.standard.add(self, #selector(reloadAllVisibleCells))
}
- @objc private func reconfigureVisibleCells() {
+ @objc private func reloadAllVisibleCells() {
guard isViewLoaded, view.window != nil else {
return
}
@@ -751,16 +751,16 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
}
let visibleArticles = indexPaths.compactMap { dataSource.itemIdentifier(for: $0) }
- reconfigureCells(visibleArticles)
+ reloadCells(visibleArticles)
}
- private func reconfigureCells(_ articles: [Article]) {
+ private func reloadCells(_ articles: [Article]) {
guard !articles.isEmpty else {
return
}
var snapshot = dataSource.snapshot()
- snapshot.reconfigureItems(articles)
+ snapshot.reloadItems(articles)
dataSource.apply(snapshot, animatingDifferences: false) { [weak self] in
self?.restoreSelectionIfNecessary(adjustScroll: false)
}
From c56bd570444b43b15b39c9b27f5082b68e0858f8 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 22 Jan 2026 16:55:09 -0800
Subject: [PATCH 04/21] Skip posting notification about status changes if no
statuses have changed.
---
Modules/Account/Sources/Account/Account.swift | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Modules/Account/Sources/Account/Account.swift b/Modules/Account/Sources/Account/Account.swift
index 0f7c7e725..c7d83432c 100644
--- a/Modules/Account/Sources/Account/Account.swift
+++ b/Modules/Account/Sources/Account/Account.swift
@@ -1356,6 +1356,10 @@ public enum FetchType {
}
func noteStatusesForArticlesDidChange(_ articles: Set) {
+ guard !articles.isEmpty else {
+ return
+ }
+
let feeds = Set(articles.compactMap { $0.feed })
let statuses = Set(articles.map { $0.status })
let articleIDs = Set(articles.map { $0.articleID })
From 469845f9803b24a014e608945c40b5e7610d183a Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 22 Jan 2026 16:55:54 -0800
Subject: [PATCH 05/21] =?UTF-8?q?Revert=20to=20direct=20cell=20access=20?=
=?UTF-8?q?=E2=80=94=C2=A0it=E2=80=99s=20faster=20than=20using=20diffable?=
=?UTF-8?q?=20data=20source=20APIs=20and=20avoids=20a=20race=20with=20anim?=
=?UTF-8?q?ated=20snapshot=20applies.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../MainFeedCollectionViewController.swift | 32 +++++-------
.../MainTimelineViewController.swift | 52 +++++++++++--------
2 files changed, 43 insertions(+), 41 deletions(-)
diff --git a/iOS/MainFeed/MainFeedCollectionViewController.swift b/iOS/MainFeed/MainFeedCollectionViewController.swift
index 59790cc89..d3466b5da 100644
--- a/iOS/MainFeed/MainFeedCollectionViewController.swift
+++ b/iOS/MainFeed/MainFeedCollectionViewController.swift
@@ -625,16 +625,19 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
return
}
- let visibleIndexPaths = collectionView.indexPathsForVisibleItems
- let itemsToReconfigure = visibleIndexPaths.compactMap { indexPath -> SidebarItemNode? in
- guard let sidebarItemNode = dataSource.itemIdentifier(for: indexPath),
+ for cell in collectionView.visibleCells {
+ guard let indexPath = collectionView.indexPath(for: cell),
+ let sidebarItemNode = dataSource.itemIdentifier(for: indexPath),
sidebarItemNode.node.representedObject === unreadCountProvider as AnyObject else {
- return nil
+ continue
+ }
+ if let feedCell = cell as? MainFeedCollectionViewCell {
+ feedCell.unreadCount = unreadCountProvider.unreadCount
+ }
+ if let folderCell = cell as? MainFeedCollectionViewFolderCell {
+ folderCell.unreadCount = unreadCountProvider.unreadCount
}
- return sidebarItemNode
}
-
- reloadCells(itemsToReconfigure)
}
@objc func feedSettingDidChange(_ note: Notification) {
@@ -647,25 +650,14 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
}
@objc func faviconDidBecomeAvailable(_ note: Notification) {
- reloadAllVisibleCells()
+ applyToAvailableCells(configureIcon)
}
@objc func feedIconDidBecomeAvailable(_ note: Notification) {
guard let feed = note.userInfo?[UserInfoKey.feed] as? Feed else {
return
}
-
- let visibleIndexPaths = collectionView.indexPathsForVisibleItems
- let itemsToReconfigure = visibleIndexPaths.compactMap { indexPath -> SidebarItemNode? in
- guard let sidebarItemNode = dataSource.itemIdentifier(for: indexPath),
- let candidateSidebarItem = sidebarItemNode.node.representedObject as? SidebarItem,
- feed.sidebarItemID == candidateSidebarItem.sidebarItemID else {
- return nil
- }
- return sidebarItemNode
- }
-
- reloadCells(itemsToReconfigure)
+ applyToCellsForRepresentedObject(feed, configureIcon(_:_:))
}
// MARK: - Actions
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index 006e906a8..b48de9f30 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -614,7 +614,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
@objc func statusesDidChange(_ note: Notification) {
Self.logger.debug("MainTimelineViewController: statusesDidChange")
- guard isViewLoaded, view.window != nil else {
+ guard isViewLoaded else {
return
}
guard let articleIDs = note.userInfo?[Account.UserInfoKey.articleIDs] as? Set, !articleIDs.isEmpty else {
@@ -626,13 +626,27 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
let visibleArticles = indexPaths.compactMap { dataSource.itemIdentifier(for: $0) }
let visibleUpdatedArticles = visibleArticles.filter { articleIDs.contains($0.articleID) }
- reloadCells(visibleUpdatedArticles)
+
+ for article in visibleUpdatedArticles {
+ if let indexPath = dataSource.indexPath(for: article) {
+ if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineIconFeedCell {
+ let cellData = configure(article: article)
+ cell.cellData = cellData
+ cell.indexPathRow = indexPath.row
+ }
+ if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineFeedCell {
+ let cellData = configure(article: article)
+ cell.cellData = cellData
+ cell.indexPathRow = indexPath.row
+ }
+ }
+ }
}
@objc func feedIconDidBecomeAvailable(_ note: Notification) {
Self.logger.debug("MainTimelineViewController: feedIconDidBecomeAvailable")
- guard isViewLoaded, view.window != nil else {
+ guard isViewLoaded else {
return
}
guard let feed = note.userInfo?[UserInfoKey.feed] as? Feed else {
@@ -645,7 +659,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
@objc func avatarDidBecomeAvailable(_ note: Notification) {
Self.logger.debug("MainTimelineViewController: avatarDidBecomeAvailable")
- guard isViewLoaded, view.window != nil else {
+ guard isViewLoaded else {
return
}
guard showIcons, let avatarURL = note.userInfo?[UserInfoKey.url] as? String else {
@@ -655,26 +669,22 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
return
}
- let articlesToReload = indexPaths.compactMap { indexPath -> Article? in
- guard let article = dataSource.itemIdentifier(for: indexPath),
- let authors = article.authors,
- !authors.isEmpty else {
- return nil
+ for indexPath in indexPaths {
+ guard let article = dataSource.itemIdentifier(for: indexPath), let authors = article.authors, !authors.isEmpty else {
+ continue
}
for author in authors {
- if author.avatarURL == avatarURL {
- return article
+ if author.avatarURL == avatarURL, let cell = tableView.cellForRow(at: indexPath) as? MainTimelineIconFeedCell, let image = iconImageFor(article) {
+ cell.setIconImage(image)
}
}
- return nil
}
- reloadCells(articlesToReload)
}
@objc func faviconDidBecomeAvailable(_ note: Notification) {
Self.logger.debug("MainTimelineViewController: faviconDidBecomeAvailable")
- guard isViewLoaded, view.window != nil else {
+ guard isViewLoaded else {
return
}
@@ -683,7 +693,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
/// Update icon for all visible articles — or, if feed is non-nil, update articles only from that feed.
private func updateIconForVisibleArticles(_ feed: Feed? = nil) {
- guard isViewLoaded, view.window != nil else {
+ guard isViewLoaded else {
return
}
guard showIcons else {
@@ -693,16 +703,16 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
return
}
- let articlesToReload = indexPaths.compactMap { indexPath -> Article? in
+ for indexPath in indexPaths {
guard let article = dataSource.itemIdentifier(for: indexPath) else {
- return nil
+ continue
}
if feed == nil || feed == article.feed {
- return article
+ if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineIconFeedCell, let image = iconImageFor(article) {
+ cell.setIconImage(image)
+ }
}
- return nil
}
- reloadCells(articlesToReload)
}
func userDefaultsDidChange() {
@@ -743,7 +753,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
}
@objc private func reloadAllVisibleCells() {
- guard isViewLoaded, view.window != nil else {
+ guard isViewLoaded else {
return
}
guard let indexPaths = tableView.indexPathsForVisibleRows else {
From 3c47d0b0c0b88ee172aec8711a72cbbd6c0446b9 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 22 Jan 2026 16:59:55 -0800
Subject: [PATCH 06/21] Bump build to 7012.
---
xcconfig/common/NetNewsWire_ios_target_common.xcconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xcconfig/common/NetNewsWire_ios_target_common.xcconfig b/xcconfig/common/NetNewsWire_ios_target_common.xcconfig
index b644261a4..8a02f127f 100644
--- a/xcconfig/common/NetNewsWire_ios_target_common.xcconfig
+++ b/xcconfig/common/NetNewsWire_ios_target_common.xcconfig
@@ -1,6 +1,6 @@
// High Level Settings common to both the iOS application and any extensions we bundle with it
MARKETING_VERSION = 7.0
-CURRENT_PROJECT_VERSION = 7010
+CURRENT_PROJECT_VERSION = 7012
APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire.iOS$(APP_GROUP_SUFFIX)
From a87da2eb3080d08c194b9917438c46dc1100a808 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 22 Jan 2026 17:01:20 -0800
Subject: [PATCH 07/21] Write release notes for iOS 7012.
---
Technotes/ReleaseNotes-iOS.markdown | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Technotes/ReleaseNotes-iOS.markdown b/Technotes/ReleaseNotes-iOS.markdown
index dc63d95f2..aedc54efe 100644
--- a/Technotes/ReleaseNotes-iOS.markdown
+++ b/Technotes/ReleaseNotes-iOS.markdown
@@ -1,5 +1,10 @@
# iOS Release Notes
+### 7.0 TestFlight build 7012 21 Jan 2026 - branch: main tag: iOS-7.0-7012
+
+Fixed a bug that could cause timeline articles to not get updated properly on things like status changes
+Fixed a crash that could happen updating timeline articles
+
### 7.0 TestFlight build 7010 21 Jan 2026 - branch: main tag: iOS-7.0-7010
Fixed two causes of a bug where small images would sometimes display as much larger than they should be
From 4d0a3519e9f124f30c0aa02eab536b0ed58e46e0 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 09:30:49 -0800
Subject: [PATCH 08/21] Fix SwiftLint issues.
---
Modules/Account/Sources/Account/Account.swift | 2 +-
iOS/MainTimeline/Cells/MainTimelineCell.swift | 88 +++++++++----------
...imelineCustomizerTableViewController.swift | 5 +-
3 files changed, 43 insertions(+), 52 deletions(-)
diff --git a/Modules/Account/Sources/Account/Account.swift b/Modules/Account/Sources/Account/Account.swift
index c7d83432c..96b9d2fb8 100644
--- a/Modules/Account/Sources/Account/Account.swift
+++ b/Modules/Account/Sources/Account/Account.swift
@@ -1359,7 +1359,7 @@ public enum FetchType {
guard !articles.isEmpty else {
return
}
-
+
let feeds = Set(articles.compactMap { $0.feed })
let statuses = Set(articles.map { $0.status })
let articleIDs = Set(articles.map { $0.articleID })
diff --git a/iOS/MainTimeline/Cells/MainTimelineCell.swift b/iOS/MainTimeline/Cells/MainTimelineCell.swift
index 9b92a03f2..52ae93741 100644
--- a/iOS/MainTimeline/Cells/MainTimelineCell.swift
+++ b/iOS/MainTimeline/Cells/MainTimelineCell.swift
@@ -9,22 +9,22 @@
import UIKit
class MainTimelineCell: UITableViewCell {
-
+
@IBOutlet var articleContent: UILabel!
@IBOutlet var articleByLine: UILabel!
@IBOutlet var feedIcon: IconView?
@IBOutlet var indicatorView: IconView!
@IBOutlet var articleDate: UILabel!
@IBOutlet var metaDataStackView: UIStackView!
-
+
var cellData: MainTimelineCellData! {
didSet {
configure(cellData)
}
}
-
+
var isPreview: Bool = false
-
+
override func awakeFromNib() {
MainActor.assumeIsolated {
super.awakeFromNib()
@@ -33,15 +33,11 @@ class MainTimelineCell: UITableViewCell {
configureStackView()
}
}
-
- override func layoutSubviews() {
- super.layoutSubviews()
- }
-
+
private func configure(_ cellData: MainTimelineCellData) {
articleContent.numberOfLines = cellData.numberOfLines
addArticleContent(configurationState)
-
+
if cellData.showFeedName == .feed {
articleByLine.text = cellData.feedName
} else if cellData.showFeedName == .byline {
@@ -49,14 +45,14 @@ class MainTimelineCell: UITableViewCell {
} else if cellData.showFeedName == .none {
articleByLine.text = ""
}
-
+
if feedIcon != nil {
setIconImage(cellData.iconImage, with: cellData.iconSize)
}
-
+
articleDate.text = cellData.dateString
}
-
+
private func updateIndicatorView(_ state: UICellConfigurationState) {
if cellData.read == false {
if indicatorView.alpha == 0.0 {
@@ -83,7 +79,7 @@ class MainTimelineCell: UITableViewCell {
}
}
}
-
+
private func configureStackView() {
switch traitCollection.preferredContentSizeCategory {
case .accessibilityMedium, .accessibilityLarge, .accessibilityExtraLarge, .accessibilityExtraExtraLarge, .accessibilityExtraExtraExtraLarge:
@@ -96,7 +92,7 @@ class MainTimelineCell: UITableViewCell {
metaDataStackView.distribution = .fillEqually
}
}
-
+
private func isActive(_ state: UICellConfigurationState) -> Bool {
let active = state.isSwiped || state.isSelected || state.isEditing || state.isHighlighted
if cellData.title.contains("Vouchers") {
@@ -104,41 +100,41 @@ class MainTimelineCell: UITableViewCell {
}
return active
}
-
+
func setIconImage(_ iconImage: IconImage?) {
if feedIcon!.iconImage !== iconImage {
feedIcon!.iconImage = iconImage
}
}
-
+
private func setIconImage(_ iconImage: IconImage?, with size: IconSize) {
feedIcon!.iconImage = iconImage
updateIconViewSizeConstraints(to: size.size)
}
-
+
private func updateIconViewSizeConstraints(to size: CGSize) {
guard feedIcon != nil else { return }
-
+
for constraint in feedIcon!.constraints.compactMap({ $0 }) {
constraint.isActive = false
}
-
+
NSLayoutConstraint.activate([
feedIcon!.widthAnchor.constraint(equalToConstant: size.width),
feedIcon!.heightAnchor.constraint(equalToConstant: size.height)
])
-
+
setNeedsLayout()
}
-
+
private func addArticleContent(_ state: UICellConfigurationState) {
let attributedCellText = NSMutableAttributedString()
-
+
// 1. Prepare Title
if cellData.title != "" {
let titleFont = UIFont.preferredFont(forTextStyle: .headline)
let lineHeight = titleFont.lineHeight
-
+
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.minimumLineHeight = lineHeight
paragraphStyle.maximumLineHeight = lineHeight
@@ -146,13 +142,13 @@ class MainTimelineCell: UITableViewCell {
paragraphStyle.lineBreakStrategy = []
paragraphStyle.hyphenationFactor = 1.0
paragraphStyle.allowsDefaultTighteningForTruncation = true
-
+
let titleAttributes: [NSAttributedString.Key: Any] = [
.font: titleFont,
.paragraphStyle: paragraphStyle,
.foregroundColor: titleTextColor(for: state)
]
-
+
let titleAttributed = NSAttributedString(string: cellData.title, attributes: titleAttributes)
let linesUsed = countLines(of: titleAttributed, width: articleContent.bounds.width)
// 2. Measure Title Height
@@ -162,15 +158,15 @@ class MainTimelineCell: UITableViewCell {
articleContent.lineBreakMode = .byTruncatingTail
return
}
-
+
attributedCellText.append(titleAttributed)
}
-
+
// 3. Prepare Summary (Only reached if Title < 3 lines)
if cellData.summary != "" {
let summaryFont = UIFont.preferredFont(forTextStyle: .body)
let summaryLineHeight = summaryFont.lineHeight
-
+
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.minimumLineHeight = summaryLineHeight
paragraphStyle.maximumLineHeight = summaryLineHeight
@@ -178,18 +174,18 @@ class MainTimelineCell: UITableViewCell {
paragraphStyle.lineBreakStrategy = []
paragraphStyle.hyphenationFactor = 1.0
paragraphStyle.allowsDefaultTighteningForTruncation = true
-
+
let summaryAttributes: [NSAttributedString.Key: Any] = [
.font: summaryFont,
.paragraphStyle: paragraphStyle,
.foregroundColor: titleTextColor(for: state)
]
-
+
let prefix = cellData.title != "" ? "\n" : ""
let summaryAttributed = NSAttributedString(string: prefix + cellData.summary, attributes: summaryAttributes)
attributedCellText.append(summaryAttributed)
}
-
+
let linesUsed = countLines(of: attributedCellText, width: articleContent.bounds.width)
if attributedCellText.string.contains("Bree-folk") {
print("Bree-folk: \(linesUsed), \(self.feedIcon != nil)")
@@ -203,10 +199,9 @@ class MainTimelineCell: UITableViewCell {
articleContent.attributedText = attributedCellText
articleContent.lineBreakMode = .byWordWrapping
}
-
-
+
}
-
+
func titleTextColor(for state: UICellConfigurationState) -> UIColor {
if isActive(state) {
return .white
@@ -214,22 +209,22 @@ class MainTimelineCell: UITableViewCell {
return .label
}
}
-
+
func countLines(of attributedString: NSAttributedString, width: CGFloat) -> Int {
let textStorage = NSTextStorage(attributedString: attributedString)
let textContainer = NSTextContainer(size: CGSize(width: width, height: .greatestFiniteMagnitude))
let layoutManager = NSLayoutManager()
-
+
layoutManager.addTextContainer(textContainer)
textStorage.addLayoutManager(layoutManager)
-
+
textContainer.lineFragmentPadding = 0 // UILabel uses 0 or very small
layoutManager.ensureLayout(for: textContainer)
-
+
var lineCount = 0
var index = 0
var lineRange = NSRange()
-
+
while index < layoutManager.numberOfGlyphs {
layoutManager.lineFragmentRect(forGlyphAt: index, effectiveRange: &lineRange)
index = NSMaxRange(lineRange)
@@ -237,17 +232,17 @@ class MainTimelineCell: UITableViewCell {
}
return lineCount
}
-
+
override func updateConfiguration(using state: UICellConfigurationState) {
super.updateConfiguration(using: state)
-
+
var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
backgroundConfig.cornerRadius = 20
if traitCollection.userInterfaceIdiom == .pad {
backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing]
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: !isPreview ? -4 : -12, bottom: 0, trailing: !isPreview ? -4 : -12)
}
-
+
if isActive(state) {
backgroundConfig.backgroundColor = Assets.Colors.primaryAccent
articleContent.textColor = titleTextColor(for: state)
@@ -258,11 +253,10 @@ class MainTimelineCell: UITableViewCell {
articleDate.textColor = .secondaryLabel
articleByLine.textColor = .secondaryLabel
}
-
+
updateIndicatorView(state)
-
+
self.backgroundConfiguration = backgroundConfig
}
-
-}
+}
diff --git a/iOS/Settings/TimelineCustomizerTableViewController.swift b/iOS/Settings/TimelineCustomizerTableViewController.swift
index 46727b3e4..c8558a6ab 100644
--- a/iOS/Settings/TimelineCustomizerTableViewController.swift
+++ b/iOS/Settings/TimelineCustomizerTableViewController.swift
@@ -9,9 +9,6 @@
import UIKit
import Articles
-
-
-
final class TimelineCustomizerTableViewController: UITableViewController {
private var previewArticle: Article {
var components = DateComponents()
@@ -74,7 +71,7 @@ final class TimelineCustomizerTableViewController: UITableViewController {
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-
+
if indexPath.section == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "IconSizeCell") as! ModernTimelineSliderCell
cell.sliderConfiguration = .iconSize
From 9b6a61f96a83197794c657587820e948d8d8c41a Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 09:31:52 -0800
Subject: [PATCH 09/21] Fix SwiftLint issue.
---
iOS/MainTimeline/MainTimelineViewController.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index d94de7e58..240ce4b88 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -586,7 +586,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
override func tableView(_ tableView: UITableView, previewForDismissingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview? {
guard let row = configuration.identifier as? Int,
- let cell = tableView.cellForRow(at: IndexPath(row: row, section: 0)), let _ = view.window else {
+ let cell = tableView.cellForRow(at: IndexPath(row: row, section: 0)), view.window != nil else {
return nil
}
From 782ed3047c7e02a12316597985147aa788f4378f Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 09:33:37 -0800
Subject: [PATCH 10/21] Fix a couple formatting issues.
---
iOS/MainTimeline/MainTimelineViewController.swift | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index 240ce4b88..10a2067cc 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -586,8 +586,9 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
override func tableView(_ tableView: UITableView, previewForDismissingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview? {
guard let row = configuration.identifier as? Int,
- let cell = tableView.cellForRow(at: IndexPath(row: row, section: 0)), view.window != nil else {
- return nil
+ let cell = tableView.cellForRow(at: IndexPath(row: row, section: 0)),
+ view.window != nil else {
+ return nil
}
let previewView = cell.contentView
@@ -596,7 +597,6 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
parameters.visiblePath = UIBezierPath(roundedRect: previewView.bounds,
cornerRadius: 20)
return UITargetedPreview(view: cell, parameters: parameters)
-
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
From 70f6ebd22bf4609e8f4046bfec9669332b2a6fc3 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 10:12:21 -0800
Subject: [PATCH 11/21] Fix some style nits. Move private functions to a
private extension.
---
iOS/MainTimeline/Cells/MainTimelineCell.swift | 212 ++++++++----------
1 file changed, 94 insertions(+), 118 deletions(-)
diff --git a/iOS/MainTimeline/Cells/MainTimelineCell.swift b/iOS/MainTimeline/Cells/MainTimelineCell.swift
index 52ae93741..8bf2e3de0 100644
--- a/iOS/MainTimeline/Cells/MainTimelineCell.swift
+++ b/iOS/MainTimeline/Cells/MainTimelineCell.swift
@@ -8,8 +8,7 @@
import UIKit
-class MainTimelineCell: UITableViewCell {
-
+final class MainTimelineCell: UITableViewCell {
@IBOutlet var articleContent: UILabel!
@IBOutlet var articleByLine: UILabel!
@IBOutlet var feedIcon: IconView?
@@ -25,6 +24,8 @@ class MainTimelineCell: UITableViewCell {
var isPreview: Bool = false
+ private static let indicatorAnimationDuration = 0.25
+
override func awakeFromNib() {
MainActor.assumeIsolated {
super.awakeFromNib()
@@ -34,31 +35,66 @@ class MainTimelineCell: UITableViewCell {
}
}
- private func configure(_ cellData: MainTimelineCellData) {
+ func setIconImage(_ iconImage: IconImage?) {
+ guard let feedIcon else {
+ return
+ }
+ if feedIcon.iconImage !== iconImage {
+ feedIcon.iconImage = iconImage
+ }
+ }
+
+ override func updateConfiguration(using state: UICellConfigurationState) {
+ super.updateConfiguration(using: state)
+
+ var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
+ backgroundConfig.cornerRadius = 20
+ if traitCollection.userInterfaceIdiom == .pad {
+ backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing]
+ backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: !isPreview ? -4 : -12, bottom: 0, trailing: !isPreview ? -4 : -12)
+ }
+
+ articleContent.textColor = titleTextColor(for: state)
+ if isActive(state) {
+ backgroundConfig.backgroundColor = Assets.Colors.primaryAccent
+ articleDate.textColor = .lightText
+ articleByLine.textColor = .lightText
+ } else {
+ articleDate.textColor = .secondaryLabel
+ articleByLine.textColor = .secondaryLabel
+ }
+
+ updateIndicatorView(state)
+
+ backgroundConfiguration = backgroundConfig
+ }
+}
+
+private extension MainTimelineCell {
+ func configure(_ cellData: MainTimelineCellData) {
articleContent.numberOfLines = cellData.numberOfLines
addArticleContent(configurationState)
- if cellData.showFeedName == .feed {
+ switch cellData.showFeedName {
+ case .feed:
articleByLine.text = cellData.feedName
- } else if cellData.showFeedName == .byline {
+ case .byline:
articleByLine.text = cellData.byline
- } else if cellData.showFeedName == .none {
+ case .none:
articleByLine.text = ""
}
- if feedIcon != nil {
- setIconImage(cellData.iconImage, with: cellData.iconSize)
- }
+ setIconImage(cellData.iconImage, with: cellData.iconSize)
articleDate.text = cellData.dateString
}
- private func updateIndicatorView(_ state: UICellConfigurationState) {
+ func updateIndicatorView(_ state: UICellConfigurationState) {
if cellData.read == false {
if indicatorView.alpha == 0.0 {
indicatorView.alpha = 1.0
}
- UIView.animate(withDuration: 0.25) {
+ UIView.animate(withDuration: Self.indicatorAnimationDuration) {
self.indicatorView.iconImage = Assets.Images.unreadCellIndicator
self.indicatorView.tintColor = self.isActive(state) ? .white : Assets.Colors.secondaryAccent
}
@@ -67,20 +103,20 @@ class MainTimelineCell: UITableViewCell {
if indicatorView.alpha == 0.0 {
indicatorView.alpha = 1.0
}
- UIView.animate(withDuration: 0.25) {
+ UIView.animate(withDuration: Self.indicatorAnimationDuration) {
self.indicatorView.iconImage = Assets.Images.starredFeed
self.indicatorView.tintColor = self.isActive(state) ? .white : Assets.Colors.star
}
return
} else if indicatorView.alpha == 1.0 {
- UIView.animate(withDuration: 0.25) {
+ UIView.animate(withDuration: Self.indicatorAnimationDuration) {
self.indicatorView.alpha = 0.0
self.indicatorView.iconImage = nil
}
}
}
- private func configureStackView() {
+ func configureStackView() {
switch traitCollection.preferredContentSizeCategory {
case .accessibilityMedium, .accessibilityLarge, .accessibilityExtraLarge, .accessibilityExtraExtraLarge, .accessibilityExtraExtraExtraLarge:
metaDataStackView.axis = .vertical
@@ -93,67 +129,63 @@ class MainTimelineCell: UITableViewCell {
}
}
- private func isActive(_ state: UICellConfigurationState) -> Bool {
- let active = state.isSwiped || state.isSelected || state.isEditing || state.isHighlighted
- if cellData.title.contains("Vouchers") {
- print("Vouchers: \(active)")
- }
- return active
+ func isActive(_ state: UICellConfigurationState) -> Bool {
+ state.isSwiped || state.isSelected || state.isEditing || state.isHighlighted
}
- func setIconImage(_ iconImage: IconImage?) {
- if feedIcon!.iconImage !== iconImage {
- feedIcon!.iconImage = iconImage
- }
- }
-
- private func setIconImage(_ iconImage: IconImage?, with size: IconSize) {
- feedIcon!.iconImage = iconImage
+ func setIconImage(_ iconImage: IconImage?, with size: IconSize) {
+ setIconImage(iconImage)
updateIconViewSizeConstraints(to: size.size)
}
- private func updateIconViewSizeConstraints(to size: CGSize) {
- guard feedIcon != nil else { return }
+ func updateIconViewSizeConstraints(to size: CGSize) {
+ guard let feedIcon else {
+ return
+ }
- for constraint in feedIcon!.constraints.compactMap({ $0 }) {
+ for constraint in feedIcon.constraints {
constraint.isActive = false
}
NSLayoutConstraint.activate([
- feedIcon!.widthAnchor.constraint(equalToConstant: size.width),
- feedIcon!.heightAnchor.constraint(equalToConstant: size.height)
+ feedIcon.widthAnchor.constraint(equalToConstant: size.width),
+ feedIcon.heightAnchor.constraint(equalToConstant: size.height)
])
setNeedsLayout()
}
- private func addArticleContent(_ state: UICellConfigurationState) {
+ func paragraphStyle(lineHeight: CGFloat) -> NSParagraphStyle {
+ let paragraphStyle = NSMutableParagraphStyle()
+
+ paragraphStyle.minimumLineHeight = lineHeight
+ paragraphStyle.maximumLineHeight = lineHeight
+ paragraphStyle.lineBreakMode = .byWordWrapping
+ paragraphStyle.lineBreakStrategy = []
+ paragraphStyle.hyphenationFactor = 1.0
+ paragraphStyle.allowsDefaultTighteningForTruncation = true
+
+ return paragraphStyle
+ }
+
+ func attributes(textStyle: UIFont.TextStyle, color: UIColor) -> [NSAttributedString.Key: Any] {
+ let font = UIFont.preferredFont(forTextStyle: textStyle)
+ let paragraphStyle = paragraphStyle(lineHeight: font.lineHeight)
+ return [.font: font, .paragraphStyle: paragraphStyle, .foregroundColor: color]
+ }
+
+ func addArticleContent(_ state: UICellConfigurationState) {
let attributedCellText = NSMutableAttributedString()
// 1. Prepare Title
- if cellData.title != "" {
- let titleFont = UIFont.preferredFont(forTextStyle: .headline)
- let lineHeight = titleFont.lineHeight
-
- let paragraphStyle = NSMutableParagraphStyle()
- paragraphStyle.minimumLineHeight = lineHeight
- paragraphStyle.maximumLineHeight = lineHeight
- paragraphStyle.lineBreakMode = .byWordWrapping
- paragraphStyle.lineBreakStrategy = []
- paragraphStyle.hyphenationFactor = 1.0
- paragraphStyle.allowsDefaultTighteningForTruncation = true
-
- let titleAttributes: [NSAttributedString.Key: Any] = [
- .font: titleFont,
- .paragraphStyle: paragraphStyle,
- .foregroundColor: titleTextColor(for: state)
- ]
-
+ if !cellData.title.isEmpty {
+ let titleAttributes = attributes(textStyle: .headline, color: titleTextColor(for: state))
let titleAttributed = NSAttributedString(string: cellData.title, attributes: titleAttributes)
- let linesUsed = countLines(of: titleAttributed, width: articleContent.bounds.width)
+
// 2. Measure Title Height
+ let linesUsed = countLines(of: titleAttributed, width: articleContent.bounds.width)
if linesUsed >= cellData.numberOfLines {
- // The title already fills 3 lines, set it and exit
+ // The title already fills numberOfLines lines, set it and exit
articleContent.attributedText = titleAttributed
articleContent.lineBreakMode = .byTruncatingTail
return
@@ -162,52 +194,23 @@ class MainTimelineCell: UITableViewCell {
attributedCellText.append(titleAttributed)
}
- // 3. Prepare Summary (Only reached if Title < 3 lines)
- if cellData.summary != "" {
- let summaryFont = UIFont.preferredFont(forTextStyle: .body)
- let summaryLineHeight = summaryFont.lineHeight
-
- let paragraphStyle = NSMutableParagraphStyle()
- paragraphStyle.minimumLineHeight = summaryLineHeight
- paragraphStyle.maximumLineHeight = summaryLineHeight
- paragraphStyle.lineBreakMode = .byWordWrapping
- paragraphStyle.lineBreakStrategy = []
- paragraphStyle.hyphenationFactor = 1.0
- paragraphStyle.allowsDefaultTighteningForTruncation = true
-
- let summaryAttributes: [NSAttributedString.Key: Any] = [
- .font: summaryFont,
- .paragraphStyle: paragraphStyle,
- .foregroundColor: titleTextColor(for: state)
- ]
-
+ // 3. Prepare Summary (only reached if title < numberOfLines lines)
+ if !cellData.summary.isEmpty {
+ let summaryAttributes = attributes(textStyle: .body, color: titleTextColor(for: state))
let prefix = cellData.title != "" ? "\n" : ""
let summaryAttributed = NSAttributedString(string: prefix + cellData.summary, attributes: summaryAttributes)
attributedCellText.append(summaryAttributed)
}
- let linesUsed = countLines(of: attributedCellText, width: articleContent.bounds.width)
- if attributedCellText.string.contains("Bree-folk") {
- print("Bree-folk: \(linesUsed), \(self.feedIcon != nil)")
- }
- if linesUsed >= cellData.numberOfLines {
- // The title already fills 3 lines, set it and exit
- articleContent.attributedText = attributedCellText
- articleContent.lineBreakMode = .byTruncatingTail
- return
- } else {
- articleContent.attributedText = attributedCellText
- articleContent.lineBreakMode = .byWordWrapping
- }
+ articleContent.attributedText = attributedCellText
+ let linesUsed = countLines(of: attributedCellText, width: articleContent.bounds.width)
+ let lineBreakMode: NSLineBreakMode = linesUsed >= cellData.numberOfLines ? .byTruncatingTail : .byWordWrapping
+ articleContent.lineBreakMode = lineBreakMode
}
func titleTextColor(for state: UICellConfigurationState) -> UIColor {
- if isActive(state) {
- return .white
- } else {
- return .label
- }
+ isActive(state) ? .white : .label
}
func countLines(of attributedString: NSAttributedString, width: CGFloat) -> Int {
@@ -232,31 +235,4 @@ class MainTimelineCell: UITableViewCell {
}
return lineCount
}
-
- override func updateConfiguration(using state: UICellConfigurationState) {
- super.updateConfiguration(using: state)
-
- var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
- backgroundConfig.cornerRadius = 20
- if traitCollection.userInterfaceIdiom == .pad {
- backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing]
- backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: !isPreview ? -4 : -12, bottom: 0, trailing: !isPreview ? -4 : -12)
- }
-
- if isActive(state) {
- backgroundConfig.backgroundColor = Assets.Colors.primaryAccent
- articleContent.textColor = titleTextColor(for: state)
- articleDate.textColor = .lightText
- articleByLine.textColor = .lightText
- } else {
- articleContent.textColor = titleTextColor(for: state)
- articleDate.textColor = .secondaryLabel
- articleByLine.textColor = .secondaryLabel
- }
-
- updateIndicatorView(state)
-
- self.backgroundConfiguration = backgroundConfig
- }
-
}
From 400ef1f305008b4995b94456757c31f122c259dc Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 10:12:29 -0800
Subject: [PATCH 12/21] Fix build errors.
---
iOS/MainTimeline/MainTimelineViewController.swift | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index 10a2067cc..db41e41f9 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -634,15 +634,9 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
for article in visibleUpdatedArticles {
if let indexPath = dataSource.indexPath(for: article) {
- if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineIconFeedCell {
+ if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineCell {
let cellData = configure(article: article)
cell.cellData = cellData
- cell.indexPathRow = indexPath.row
- }
- if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineFeedCell {
- let cellData = configure(article: article)
- cell.cellData = cellData
- cell.indexPathRow = indexPath.row
}
}
}
@@ -679,7 +673,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
continue
}
for author in authors {
- if author.avatarURL == avatarURL, let cell = tableView.cellForRow(at: indexPath) as? MainTimelineIconFeedCell, let image = iconImageFor(article) {
+ if author.avatarURL == avatarURL, let cell = tableView.cellForRow(at: indexPath) as? MainTimelineCell, let image = iconImageFor(article) {
cell.setIconImage(image)
}
}
@@ -713,7 +707,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
continue
}
if feed == nil || feed == article.feed {
- if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineIconFeedCell, let image = iconImageFor(article) {
+ if let cell = tableView.cellForRow(at: indexPath) as? MainTimelineCell, let image = iconImageFor(article) {
cell.setIconImage(image)
}
}
From 273608e077c68d6812205e6596f1ef4364584deb Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 10:49:00 -0800
Subject: [PATCH 13/21] Fix some style nits.
---
.../MainTimelineViewController.swift | 49 +++++++++----------
...imelineCustomizerTableViewController.swift | 4 +-
2 files changed, 24 insertions(+), 29 deletions(-)
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index db41e41f9..ce992ce1c 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -14,12 +14,13 @@ import RSWeb
import Account
import Articles
-let standardCellIdentifier = "MainTimelineCellStandard"
-let standardCellIdentifierIndex0 = "MainTimelineCellIndexZero"
-let standardCellIdentifierIcon = "MainTimelineCellIcon"
-let standardCellIdentifierIconIndex0 = "MainTimelineCellIconIndexZero"
-
final class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
+ struct CellIdentifier {
+ static let standard = "MainTimelineCellStandard"
+ static let standardIndex0 = "MainTimelineCellIndexZero"
+ static let icon = "MainTimelineCellIcon"
+ static let iconIndex0 = "MainTimelineCellIconIndexZero"
+ }
private var numberOfTextLines = 0
private var iconSize = IconSize.medium
@@ -888,31 +889,25 @@ private extension MainTimelineViewController {
func makeDataSource() -> UITableViewDiffableDataSource {
let dataSource: UITableViewDiffableDataSource =
- MainTimelineDataSource(tableView: tableView, cellProvider: { [weak self] tableView, indexPath, article in
- let cellData = self!.configure(article: article)
- if self!.showIcons {
- if indexPath.row == 0 {
- let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifierIconIndex0, for: indexPath) as! MainTimelineCell
- cell.cellData = cellData
- return cell
- } else {
- let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifierIcon, for: indexPath) as! MainTimelineCell
- cell.cellData = cellData
- return cell
- }
+ MainTimelineDataSource(tableView: tableView) { [weak self] tableView, indexPath, article in
+ guard let self else {
+ return nil
+ }
+ let cellData = self.configure(article: article)
+ let cellIdentifier: String = {
+ if self.showIcons {
+ return indexPath.row == 0 ? CellIdentifier.iconIndex0 : CellIdentifier.icon
} else {
- if indexPath.row == 0 {
- let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifierIndex0, for: indexPath) as! MainTimelineCell
- cell.cellData = cellData
- return cell
- } else {
- let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifier, for: indexPath) as! MainTimelineCell
- cell.cellData = cellData
- return cell
- }
+ return indexPath.row == 0 ? CellIdentifier.standardIndex0 : CellIdentifier.standard
}
+ }()
+
+ // Force unwrapping because if this doesn't work then there are serious issues.
+ let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! MainTimelineCell
+ cell.cellData = cellData
+ return cell
+ }
- })
dataSource.defaultRowAnimation = .middle
return dataSource
}
diff --git a/iOS/Settings/TimelineCustomizerTableViewController.swift b/iOS/Settings/TimelineCustomizerTableViewController.swift
index c8558a6ab..5a555824e 100644
--- a/iOS/Settings/TimelineCustomizerTableViewController.swift
+++ b/iOS/Settings/TimelineCustomizerTableViewController.swift
@@ -85,7 +85,7 @@ final class TimelineCustomizerTableViewController: UITableViewController {
}
if indexPath.section == 2 {
- let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifierIcon) as! MainTimelineCell
+ let cell = tableView.dequeueReusableCell(withIdentifier: MainTimelineViewController.CellIdentifier.icon) as! MainTimelineCell
cell.cellData = MainTimelineCellData(article: previewArticle,
showFeedName: .byline,
feedName: "The Fellowship of the Ring",
@@ -99,7 +99,7 @@ final class TimelineCustomizerTableViewController: UITableViewController {
}
if indexPath.section == 3 {
- let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifier) as! MainTimelineCell
+ let cell = tableView.dequeueReusableCell(withIdentifier: MainTimelineViewController.CellIdentifier.standard) as! MainTimelineCell
cell.cellData = MainTimelineCellData(article: previewArticle,
showFeedName: .byline,
feedName: "The Fellowship of the Ring",
From fd59a43f9de72998a060651abf685a951e622544 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 11:03:32 -0800
Subject: [PATCH 14/21] Allow Claude to use the liquid-glass skill.
---
.claude/settings.local.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 205b61aae..7a62d51fa 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -69,7 +69,8 @@
"Bash(done)",
"Bash(# Show files touched by state restoration related commits echo \"\"=== Files changed in state restoration commits ===\"\" for commit in 04e98a47d 89b31858c d788af388 1d49b9328 236943f82 38d6b11c5 3be027699 16c66513c 1ef2aa162 6ce3bdadc 1954f5b65 55b7da75d 20b3bda94 4bf57afc1 e0074d70b 616b9deeb f6bca9ee8 ea6eedb86 380617920 d68106ac0 d30c62757 813f0706b 2ea00619c; do git diff-tree --no-commit-id --name-only -r \"\"$commit\"\" done)",
"Bash(swiftlint version:*)",
- "Bash(swiftlint:*)"
+ "Bash(swiftlint:*)",
+ "Skill(axiom:axiom-liquid-glass)"
],
"deny": [],
"ask": []
From 1907486fe51f3540032ae101280accebceab7419 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 11:39:03 -0800
Subject: [PATCH 15/21] Blur the area under the toolbar by using the new
obscuredContentInsets API.
---
Mac/MainWindow/Detail/DetailWebView.swift | 43 +++++++++++++++++++----
1 file changed, 37 insertions(+), 6 deletions(-)
diff --git a/Mac/MainWindow/Detail/DetailWebView.swift b/Mac/MainWindow/Detail/DetailWebView.swift
index 95709089c..19bb2dab3 100644
--- a/Mac/MainWindow/Detail/DetailWebView.swift
+++ b/Mac/MainWindow/Detail/DetailWebView.swift
@@ -11,11 +11,11 @@ import WebKit
import RSCore
final class DetailWebView: WKWebView {
-
weak var keyboardDelegate: KeyboardDelegate?
+ private var isObservingResizeNotifications = false
override func accessibilityLabel() -> String? {
- return NSLocalizedString("Article", comment: "Article")
+ NSLocalizedString("Article", comment: "Article")
}
// MARK: - NSResponder
@@ -27,7 +27,26 @@ final class DetailWebView: WKWebView {
super.keyDown(with: event)
}
- // MARK: NSView
+ // MARK: - NSView
+
+ override func viewDidMoveToWindow() {
+ super.viewDidMoveToWindow()
+ updateObscuredContentInsets()
+
+ if let window, !isObservingResizeNotifications {
+ NotificationCenter.default.addObserver(
+ self,
+ selector: #selector(windowDidResize(_:)),
+ name: NSWindow.didResizeNotification,
+ object: window
+ )
+ isObservingResizeNotifications = true
+ }
+ }
+
+ @objc func windowDidResize(_ notification: Notification) {
+ updateObscuredContentInsets()
+ }
override func willOpenMenu(_ menu: NSMenu, with event: NSEvent) {
// There’s no API for affecting a WKWebView’s contextual menu.
@@ -59,18 +78,15 @@ final class DetailWebView: WKWebView {
// MARK: - Private
private extension NSUserInterfaceItemIdentifier {
-
static let DetailMenuItemIdentifierReload = NSUserInterfaceItemIdentifier(rawValue: "WKMenuItemIdentifierReload")
static let DetailMenuItemIdentifierOpenLink = NSUserInterfaceItemIdentifier(rawValue: "WKMenuItemIdentifierOpenLink")
}
private extension DetailWebView {
-
static let menuItemIdentifiersToHide: [NSUserInterfaceItemIdentifier] = [.DetailMenuItemIdentifierReload]
static let menuItemIdentifierMatchStrings = ["newwindow", "download"]
func shouldHideMenuItem(_ menuItem: NSMenuItem) -> Bool {
-
guard let identifier = menuItem.identifier else {
return false
}
@@ -88,4 +104,19 @@ private extension DetailWebView {
return false
}
+
+ func updateObscuredContentInsets() {
+ guard let window,
+ let toolbar = window.toolbar,
+ toolbar.isVisible,
+ let contentView = window.contentView else {
+ return
+ }
+
+ let contentLayoutRect = window.contentLayoutRect
+ let windowHeight = contentView.bounds.height
+ let toolbarHeight = windowHeight - contentLayoutRect.height
+
+ obscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0)
+ }
}
From 8070c13e3b044a256b96a6b1a57d9bf954ad07dc Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 23 Jan 2026 14:23:50 -0800
Subject: [PATCH 16/21] Call updateObscuredContentInsets from init.
---
Mac/MainWindow/Detail/DetailWebView.swift | 40 ++++++++++++++++-------
1 file changed, 29 insertions(+), 11 deletions(-)
diff --git a/Mac/MainWindow/Detail/DetailWebView.swift b/Mac/MainWindow/Detail/DetailWebView.swift
index 19bb2dab3..97e5c5a5e 100644
--- a/Mac/MainWindow/Detail/DetailWebView.swift
+++ b/Mac/MainWindow/Detail/DetailWebView.swift
@@ -14,6 +14,32 @@ final class DetailWebView: WKWebView {
weak var keyboardDelegate: KeyboardDelegate?
private var isObservingResizeNotifications = false
+ private static let estimatedToolbarHeight: CGFloat = 52 // Height of macOS 26.2 icon-only toolbar
+ private var toolbarHeight: CGFloat {
+ guard let window,
+ let toolbar = window.toolbar,
+ toolbar.isVisible,
+ let contentView = window.contentView else {
+ return lastToolbarHeight ?? Self.estimatedToolbarHeight
+ }
+
+ let contentLayoutRect = window.contentLayoutRect
+ let windowHeight = contentView.bounds.height
+ let height = windowHeight - contentLayoutRect.height
+ lastToolbarHeight = height
+ return height
+ }
+ private var lastToolbarHeight: CGFloat?
+
+ override init(frame: CGRect, configuration: WKWebViewConfiguration) {
+ super.init(frame: frame, configuration: configuration)
+ updateObscuredContentInsets()
+ }
+
+ required init?(coder: NSCoder) {
+ abort()
+ }
+
override func accessibilityLabel() -> String? {
NSLocalizedString("Article", comment: "Article")
}
@@ -106,17 +132,9 @@ private extension DetailWebView {
}
func updateObscuredContentInsets() {
- guard let window,
- let toolbar = window.toolbar,
- toolbar.isVisible,
- let contentView = window.contentView else {
- return
+ let updatedObscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0)
+ if obscuredContentInsets != updatedObscuredContentInsets {
+ obscuredContentInsets = updatedObscuredContentInsets
}
-
- let contentLayoutRect = window.contentLayoutRect
- let windowHeight = contentView.bounds.height
- let toolbarHeight = windowHeight - contentLayoutRect.height
-
- obscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0)
}
}
From af9406d62953c067ae3a5f127cfcb1d522af583e Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Sat, 24 Jan 2026 10:22:52 -0800
Subject: [PATCH 17/21] Add git push step.
---
Technotes/HowToDoMacSparkleRelease.markdown | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Technotes/HowToDoMacSparkleRelease.markdown b/Technotes/HowToDoMacSparkleRelease.markdown
index 4eda8fb66..e92451646 100644
--- a/Technotes/HowToDoMacSparkleRelease.markdown
+++ b/Technotes/HowToDoMacSparkleRelease.markdown
@@ -25,6 +25,8 @@ Smoke test
On main: update Technotes/Status.md
commit
+git push
+
Tag the app:
git tag mac-6.1.5b4
From e4c2d5896b147565562e72f724021780f17e6ebe Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Sat, 24 Jan 2026 10:23:06 -0800
Subject: [PATCH 18/21] Bump build to 7013.
---
xcconfig/common/NetNewsWire_mac_target_common.xcconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig
index 34bcfd7be..11e07189e 100644
--- a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig
+++ b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig
@@ -1,6 +1,6 @@
// High Level Settings common to both the Mac application and any extensions we bundle with it
-MARKETING_VERSION = 7.0b5
-CURRENT_PROJECT_VERSION = 7011
+MARKETING_VERSION = 7.0b6
+CURRENT_PROJECT_VERSION = 7013
APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen$(APP_GROUP_SUFFIX)
From 5583df61b35a7d24659f8ac522a9d7360cf797e5 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Sat, 24 Jan 2026 10:25:09 -0800
Subject: [PATCH 19/21] Update status.
---
Technotes/Status.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Technotes/Status.md b/Technotes/Status.md
index a7eab76bd..55298ef0b 100644
--- a/Technotes/Status.md
+++ b/Technotes/Status.md
@@ -18,5 +18,5 @@ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.0-7010
Mac shipping: 6.2.1
https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-6.2.1
-Mac beta: 7.0b5
-https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.0b5
+Mac beta: 7.0b6
+https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.0b6
From 85d02c66bcd6efd9ad2198f69733449cfa883c02 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Sat, 24 Jan 2026 10:28:00 -0800
Subject: [PATCH 20/21] Write release notes for 7.0b6.
---
Technotes/ReleaseNotes-Mac.markdown | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Technotes/ReleaseNotes-Mac.markdown b/Technotes/ReleaseNotes-Mac.markdown
index bc385d6de..73a2201d4 100644
--- a/Technotes/ReleaseNotes-Mac.markdown
+++ b/Technotes/ReleaseNotes-Mac.markdown
@@ -1,6 +1,10 @@
# Mac Release Notes
-### 7.0b5 build 7011 14 Jan 2026 — branch: main tag: mac-7.0b5
+### 7.0b6 build 7013 24 Jan 2026 — branch: main tag: mac-7.0b6
+
+Made the article view content blur when underneath the toolbar. (Technical detail for the curious: WKWebView has a new property `obscuredContentInsets` for this scenario.)
+
+### 7.0b5 build 7011 22 Jan 2026 — branch: main tag: mac-7.0b5
Decreased the minimum size of the sidebar
Fixed two causes of a bug where small images would sometimes display as much larger than they should be
From 3cf8bc7865f32659d609b7f40b47d0d2ef4259a9 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Sat, 24 Jan 2026 10:43:21 -0800
Subject: [PATCH 21/21] Update appcast for 7.0b6.
---
Appcasts/netnewswire-beta.xml | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml
index 8932dd926..8056a54b9 100644
--- a/Appcasts/netnewswire-beta.xml
+++ b/Appcasts/netnewswire-beta.xml
@@ -6,6 +6,18 @@
Most recent NetNewsWire changes with links to updates.
en
+
-
+ NetNewsWire 7.0b6
+
+ Made the article view content blur when underneath the toolbar
+
+ ]]>
+ Sat, 24 Jan 2026 10:35:00 -0800
+
+ 26.0
+
+
-
NetNewsWire 7.0b5
26.0
- -
- NetNewsWire 7.0b4
-
- Fixed Feedly syncing — it’s working again
-
- ]]>
- Wed, 14 Jan 2026 20:45:00 -0800
-
- 26.0
-
-
-
NetNewsWire 6.2.1