~/talk

Mastering SwiftUI Previews: How the Project Structure can hel

Talkat Swift Connection 2023 · 2023-09-21..09-22· [swift, frontend-architecture]
links:none on file
slides:none on file

Argues that reorganizing code into Swift packages and small, composable views plus separating data and logic yields much faster, reliable SwiftUI previews: preview builds shrink, previews avoid real API or DB access by injecting mocks instead of API calls, and Xcode 15 surfaces preview errors more clearly. Describes a custom per-view, Redux-like state pattern with optional injected logic, shows examples of previewing all dynamic type and color-scheme variants, and reports this approach reduces iteration time and catches edge states.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:34SwiftUI Previews challenges
  3. 4:46Advantages of SwiftUI Previews
  4. 6:20Reducing preview complexity
  5. 9:35Architecture for SwiftUI Previews
  6. 12:04Key takeaways and conclusion
  7. 13:29Q&A session
~/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.