Declarative Presentations
summary
Builds a tiny, concrete demo point of sale that models view presentation as synchronous operations returning futures and shows it actually working in Xcode. Implements a lightweight 40-line Future type to carry delayed results, extracts a Presentable protocol with Associatedtype and a UIViewController extension to present any flow, and adds a presentation "manner" parameter to choose modal push or popover. Enables one-line snapshot and flow tests, tooling to track presentations and leaks, and runs in production for about two years.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:39Declarative vs imperative
- 6:05View presentation concept
- 9:04Building the POS skeleton
- 12:21Implementing futures
- 17:46Connecting UI to logic
- 24:23Generalizing the approach
- 28:45Advanced tools and testing
- 33:00Conclusion and takeaways
- 34:56Q&A session








