Main Feed Module

← App map · The sidebar of accounts, smart feeds, feeds and folders; adding a feed or folder, and inspecting one.

Screenshots scroll sideways · tap to enlarge

What it does

MainFeedCollectionViewController renders the sidebar as a UICollectionViewDiffableDataSource over a TreeController: one section per account, each holding its smart feeds (Today, All Unread, Starred) and the account's feeds and folders, indented by nesting. Folders carry a disclosure triangle (MainFeedCollectionViewFolderCell); a feed or container row shows an unread count once it has one (UILabel+UnreadCount). Pull-to-refresh and the toolbar refresh button both drive RefreshProgressView, a small inline spinner-and-count view. Tapping a row calls coordinator.selectSidebarItem(), which is how every other screen finds out what's selected. "Add Feed" and "Add Folder" are SwiftUI sheets (AddFeedView, AddFolderView) hosted from UIKit with UIHostingController; adding a feed accepts a URL typed in, pasted, or carried over from a feed: deep link, defaulting the account/folder to whichever one the Settings "Default add location" points at. "Get Info" on a feed or account opens a form-sheet inspector — FeedInspectorViewController (a UITableViewController, built from a storyboard) for a feed, or the SwiftUI AccountInspectorView/AccountNotificationInspectorView for an account.

Logic class diagram

The view controller owns the diffable data source and a TreeController's snapshot of expanded/collapsed containers; it asks the coordinator for everything about selection and navigation.

Screen widget composition

Add a feed by URL sequence

Key files