~/talk

A Crash Course of The Composable Architecture

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

Live-coding builds a working Pomodoro app using The Composable Architecture (TCA): State/Action/Reducer/Store, ViewStore bindings, and ReducerBuilder. Side effects run with async run blocks, a cancelable effect with ID stops the timer, and time is tested with a TestClock-controlled time advancement injected via the dependency system. Tests use TestStore, mockable UUID and Date generators, and assert exact state transitions for individual ticks; child screens use IdentifiedArray for child features and PresentationAction wiring.

AI-written summary · about

  1. 0:00Introduction
  2. 0:48What is TCA?
  3. 3:34Live demo setup
  4. 6:25Modeling actions and state
  5. 8:11Connecting view to store
  6. 9:14Handling text input
  7. 11:06Disabling UI controls
  8. 11:27Writing tests
  9. 12:52Adding timer logic
  10. 14:58Canceling effects
  11. 16:01Testing async effects
  12. 18:15Fixing timer duration
  13. 19:18Testing timer completion
  14. 22:47Storing timer items
  15. 23:50Testing list updates
  16. 24:53Mocking dependencies
  17. 25:57Adding list view
  18. 26:59Child feature communication
  19. 29:50Scoping and presentation
  20. 31:36Sheet integration
  21. 32:43Handling child actions
  22. 33:27Summary and resources
~/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.