Settings Module

← App map · The SwiftUI settings screen reached from the profile menu — languages, search, feeds, notifications, reading preferences, storage, donations, privacy and account.

Screenshots scroll sideways · tap to enlarge

What it does

Settings opens from the profile menu behind the account button in each tab's navigation bar: ProfileCoordinator starts SettingsCoordinator, which reads the current values (primary language, reading theme, account state) asynchronously and builds WMFSettingsViewModel, shown by WMFSettingsViewController. The first section is the account row — Log in when logged out, your username (or temporary-account name) otherwise. The main section has My languages (showing the primary one), Search, the Home feed settings (For You and Community, or the classic Explore settings), Year in Review when it is offered, Push notifications, Reading preferences (showing the current theme), Article storage and syncing, and Clear cached data, which asks first. Then come editing preferences (the default editor), donations (donation reminders, clear donation history), privacy (privacy policy, terms of use, safety, opening in the browser) and finally rate the app, help and about. Each row's action is a closure the coordinator supplies, so the SwiftUI view never knows where a row leads; values that change (language, theme) are re-read when the screen appears.

Logic class diagram

The coordinator owns every navigation decision; the view model is just sections of rows with closures.

Screen view composition

Open Settings, change the languages sequence

Settings is built asynchronously, because some row values come from async data.

Key files