Using SwiftUI as a Language
summary
Claims SwiftUI is best used as a language of grammar primitives not just components, and demonstrates a concrete solution for a production financial app: build a reusable modifier that detects truncation by measuring three ghosts (visible, forced-single-line, fully-wrapped) via background + GeometryReader + fixedSize, then run three comparisons to decide compact/standard/extended. Layout switches use a ZStack with a high layoutPriority winner. Result: no private APIs, accurate selection, and the UI works reliably in the app.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:02Speaker’s Swift journey
- 3:29SwiftUI as a language
- 4:31Vocabulary in components
- 5:59Grammar in relationships
- 7:04Text truncation challenge
- 11:24Combining grammar
- 17:52Text layout rules
- 18:57ZStack and layout priority
- 21:06Mastering SwiftUI grammar
- 22:33Closing
related talks
28mElevating your design with SwiftUI
41mWhen You Can’t Go All In On SwiftUI, Build a Hybrid UI App Instead!
27mCode organization strategies for complex globalization in Swift
40mFunctional iOS Architecture in the SwiftUI Era
17mMastering SwiftUI Previews: How the Project Structure can hel
46mScaling Up With SwiftUI: Migrating iOS Apps To SwiftUI
40mRethinking UI: Imperative to Declarative
37mAdopting SwiftUI at scale
