Home Module

← App map · The Home tab's two feeds — a personal For You feed and the Community feed of featured, top read, news and on-this-day cards — in one SwiftUI screen.

Screenshots scroll sideways · tap to enlarge

What it does

HomeCoordinator builds the Home tab: a UIKit HomeViewController hosting the SwiftUI WMFHomeView, with a For You / Community segmented control and a language menu in the navigation bar. For You is fetched from WMFHomeDataController for the selected wiki and has three modules — based on your interests, because you read, and continue reading — each of which can be hidden, as can single cards. Community is, unless the phase-2 developer flag is on, the classic Explore feed embedded as a child view controller: ExploreViewController shows a Core Data–backed list of WMFContentGroup cards produced by WMFExploreFeedContentController from content sources — related pages, continue reading and suggested edits once, plus per preferred language a daily game, nearby places, the featured article / top read / in the news / picture of the day feed, a random article, announcements and on this day. Pull to refresh asks every source to update for today; scrolling to the end loads the previous day. The feeds reload when the day changes, and tapping a card pushes the article on the Home tab's navigation stack. Card actions (save, share, hide) are logged through the coordinator's closures.

Logic class diagram

A UIKit shell around a SwiftUI view model, with the legacy Core Data feed plugged in as the Community segment.

Screen view composition

SwiftUI on top, UIKit cards underneath when Community shows the classic feed.

Pull to refresh the Community feed sequence

Every source writes content groups into Core Data; the fetched-results controller animates the new cards in.

Key files