~/talk

What Not to Do: Rocky Road to Banner View

links:none on file
slides:none on file

Builds a SwiftUI banner component through three iterations: first a State-driven banner appears inside child view which breaks when a child should not host it, then a BannerManager via dependency injection and EnvironmentObject that becomes testable, and finally a solution using two view modifiers that create and inject the manager so views that don’t need banners stay banner-free. Notes a practical downside: it crashes if the top-level modifier is forgotten and cannot be used inside UIKit screens.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Project overview
  3. 3:16First mistake
  4. 6:27Second iteration
  5. 8:18Final solution
  6. 11:32Key takeaways
  7. 13:56Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.