~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/old-fella

Old people's social media app

0
1

fix(navigation): investigate large-title font flickering

Closed
Closed geesawra.industries opened this issue 0 comments

Investigate the implementation of large-title navigation bars. The user still sees font flickering in these bars. The exact screens, font selections, and triggers need reproduction.

Review how the app applies fonts to native navigation titles and whether repeated updates cause a visible font change. Do not assume the cause before reproducing the flicker.

Investigation scope:

  • Reproduce the flicker on screens with large titles, including Feed, Notifications, Search, and Settings where applicable.
  • Compare the system font and available custom fonts. Record which selections show the problem.
  • Review first presentation, tab changes, navigation forward and back, and scrolling between expanded and collapsed titles.
  • Review font changes in Settings, Dynamic Type changes, and return from the background.
  • Compare light and dark appearances, and review the relevant iPhone and iPad layouts.

Initial code evidence:

  • DisplayPreferences.swift applies fonts through BarFontAppearance, LargeTitleFontObserver, and BarFontUpdater.
  • BarFontAppearance updates navigation bar appearance objects and searches the view hierarchy for large-title labels.
  • LargeTitleFontObserver observes changes to label fonts and attributed text, then reapplies the selected font.
  • FeedView.swift and NotificationsView.swift select large or inline titles according to the layout.
  • SearchView.swift and SettingsView.swift use large titles.

These are investigation leads. Review update timing, label replacement during transitions, and interactions between SwiftUI and UIKit font updates. Make sure that the implementation stays small, uses native navigation behavior, and avoids unnecessary work on the main thread.

Acceptance criteria:

  • Record reliable reproduction steps and the affected screens, fonts, and transitions.
  • Identify the cause of the visible font flicker before choosing a fix.
  • Make sure that titles use the selected font from their first visible frame and remain stable through navigation and scrolling.
  • Make sure that expanded and collapsed titles retain the intended size, weight, and Dynamic Type behavior.
  • Make sure that switching fonts, including returning to the system font, updates visible and newly opened screens consistently.
  • Preserve native title transitions and smooth scrolling without repeated layout or font update loops.
  • Include a visual review of the affected transitions and focused regression coverage where practical. Use predictable data without live Bluesky credentials or network access.