From 1b822cf0ad1713d9d15f8c873bf757d68d5cad61 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Fri, 12 Dec 2025 20:24:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20to=20make=20sure=20unr?= =?UTF-8?q?ead=20count=20displays?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MainTimelineViewController.swift | 2 +- iOS/SceneCoordinator.swift | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift index 0246c9dc0..d2cf48b31 100644 --- a/iOS/MainTimeline/MainTimelineViewController.swift +++ b/iOS/MainTimeline/MainTimelineViewController.swift @@ -219,7 +219,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu } //navigationItem.subtitle = "" // don't inherit feeds subtitle on push updateNavigationBarTitle(coordinator?.timelineFeed?.nameForDisplay ?? "") - updateNavigationBarSubtitle("") + coordinator?.updateNavigationBarSubtitles(nil) } override func viewDidAppear(_ animated: Bool) { diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index abefce5ef..28d4270f4 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -655,9 +655,22 @@ struct FeedNode: Hashable, Sendable { } } } - } else { + } + else { self.mainFeedCollectionViewController?.navigationItem.subtitle = "" - self.mainTimelineViewController?.updateNavigationBarSubtitle("") + // If unread count > 0, add unread string to timeline + if let _ = timelineFeed, timelineUnreadCount > 0 { + let localizedUnreadCount = NSLocalizedString("%i Unread", comment: "14 Unread") + let refreshTextWithUnreadCount = NSString.localizedStringWithFormat(localizedUnreadCount as NSString, timelineUnreadCount) as String + self.mainTimelineViewController?.updateNavigationBarSubtitle(refreshTextWithUnreadCount) + } else { + // When unread count == 0, iPhone timeline displays Updated Just Now; iPad is blank + if UIDevice.current.userInterfaceIdiom == .phone { + self.mainTimelineViewController?.updateNavigationBarSubtitle(NSLocalizedString("Updated Just Now", comment: "Updated Just Now")) + } else { + self.mainTimelineViewController?.updateNavigationBarSubtitle("") + } + } } } else { // Updating in progress, apply to both iPhone and iPad Feeds. @@ -665,7 +678,6 @@ struct FeedNode: Hashable, Sendable { } scheduleNavigationBarSubtitleUpdate() - } func scheduleNavigationBarSubtitleUpdate() { From 5657647c3e7cf9eb4557b836df5fbaf37d0ddce1 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Fri, 12 Dec 2025 20:26:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20`Assets`=20cr?= =?UTF-8?q?ash=20that=20was=20not=20using=20`symbol`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shared/Assets.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Assets.swift b/Shared/Assets.swift index d0b8daf06..4e1bbcd63 100644 --- a/Shared/Assets.swift +++ b/Shared/Assets.swift @@ -128,7 +128,7 @@ struct Assets { static var circleClosed: RSImage { RSImage(symbol: "largecircle.fill.circle")! } static var markBelowAsRead: RSImage { RSImage(symbol: "arrowtriangle.down.circle")! } - static var markAboveAsRead: RSImage { RSImage(named: "arrowtriangle.up.circle")! } + static var markAboveAsRead: RSImage { RSImage(symbol: "arrowtriangle.up.circle")! } static var more: RSImage { RSImage(symbol: "ellipsis.circle")! } static var nextArticle: RSImage { RSImage(symbol: "chevron.down")! } static var circleOpen: RSImage { RSImage(symbol: "circle")! }