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")! } 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() {