Making Table Views Great Again!
summary
Concrete fixes and working code replace vague promises: a reuse ID via reusable protocol and a generic register/dequeue extension remove string literals and guard boilerplate, a generic register/dequeue one-liners make registration and dequeuing type-safe, a generic cell wrapper lets any UIView become a reusable UITableViewCell and eliminates duplicated UI classes, and an enum-driven data model with subscript models static tables, validates input, and reduces cellForRow to about ten lines while the cache uses a subscript to map enums to stored properties.
AI-written summary · about
chapters (5)
related talks
29mTable View Controllers in Swift
21mOptimizing Swift code for separation of concerns and simplicity
18mBuckets of Code
19mFinally Solving the Expression Problem
31m5 Steps to Better SwiftUI Views
43mRefactoring a Massive View Controller in Swift
31mMaking the Most Out of Swift
40mPractical Generics in Swift
