Swift and You
summary
Argues that Swift’s language features do real work: a tiny SwiftUI counter actually uses struct value types, @State property wrappers, opaque return types (some View), result builders, type inference and implicit self capture. Shows fixes: add @ViewBuilder to resolve opaque-return mismatches, use checked throwing continuation to bridge legacy completion-handler networking to async/await, and confine concurrency with Task plus mainActor.run. Demonstrates dynamicMemberLookup to make enum+keypath APIs ergonomic.
AI-written summary · about
chapters (22)
- 0:00Introduction and welcome
- 1:12Focus on Swift language
- 4:45SwiftUI simple view example
- 8:14Verbose alternative comparison
- 9:18Advanced features simplify APIs
- 9:59Opaque return types in SwiftUI
- 13:08Abstractions pros and cons
- 14:33Language features as abstractions
- 15:16Protocols vs enums for shared data
- 19:10Dynamic member lookup in enums
- 21:58Dynamic member lookup in SwiftUI
- 23:24When not to use dynamic member lookup
- 24:49Matching features to problems
- 25:10Syntax vs systems features
- 26:12Introducing Swift concurrency
- 28:21Backward compatibility with concurrency
- 29:22Integrating concurrency incrementally
- 31:26Main actor and threading
- 33:33Adopting core systems smoothly
- 34:15Discovering new Swift features
- 37:22Learning and adopting features
- 38:02Q&A and closing remarks
related talks
31mThe Swift Behind SwiftUI
44mSo You Think You Know Swift
31mMaking the Most Out of Swift
34mSwift: New Paradigms for iOS Development
48mLearning From Our Elders: Applying functional insights without losing Swift
44mSwift 6, Async/Await, SwiftUI went into a Bar...
18mScientific Swift
30mLeveraging Swift's Type System
