~/talk

Testing and Declarative UI's

Talkat FrenchKit 2019 · 2019-10-07..10-08· [testing]
slides:none on file

Argues for extracting decision logic out of views so business rules live in testable units (use an enum-mode and view model that is ObservableObject with @Published mode), exercises those units with plain unit tests, and wires Swift UI previews into automated visual checks by converting Xcode Previews into image snapshots via the SnapshotTesting workflow (hosting controller + preview-to-snapshot protocol). Notes navigation via NavigationLink driven by external state works but can be flaky.

AI-written summary · about

  1. 0:00Testing and declarative UIs
  2. 2:15Testing in iOS development
  3. 3:22Testing declarative UIs
  4. 8:23Business logic in SwiftUI
  5. 10:30Dumb views and separation
  6. 11:57Navigation logic testing
  7. 15:51Xcode previews testing
  8. 18:21Visual regression automation
  9. 23:04Previews and snapshot tests
  10. 25:33Lessons from React
  11. 27:06Q&A
~/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.