~/talk

Previews and Package Oriented Programming

Talkat Do iOS 2022 · 2022-11-08..11-09· [swift, frontend-architecture]
slides:none on file

Demonstrates concrete patterns: use NavigationStack previews to show toolbars, put UI state in small pieces and pass it with dot-constant binding or real @Binding, and treat previews like lightweight API tests. Builds a demo app split into local Swift packages (basic types, helper views, journey model, UI packages) with explicit public inits, static example data for previews, and a data source as an ObservableObject with private @Published storage. Notes tradeoffs: previews can break builds, packages can’t be declared iOS‑only, and SwiftPM rebuild behavior is usually incremental (command‑line builds can be faster).

AI-written summary · about

  1. 0:00Swift UI value vs reference
  2. 4:08Fixing SwiftUI previews
  3. 7:32Separating view and state
  4. 13:33Modularizing Swift code
  5. 17:37Creating local packages
  6. 25:23Building the UI with modules
  7. 31:07Advanced modularization tips
  8. 38:07Q&A and closing remarks
~/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.