Low-Hanging View Controller Fruits
summary
Advocates small, concrete refactors that shrink viewDidLoad and make controllers easy to skim: abstract networking/deserialization into a network.getPurpleItems API, move dependent UI updates into property observers, and push view styling into custom views or closure-based property initializers so the setup code disappears from lifecycle methods. Adds #mark pragmas to expose responsibilities in Xcode’s method list. Examples show the page view population and UI wiring still work after changes, and code is easier to read when constraints are kept programmatic (no Interface Builder).
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:47How to make better view controllers
- 2:05What is a bad view controller
- 4:00How to skim view controllers
- 8:21How to abstract away logic
- 10:37Before and after
- 11:09How to know what to take out
- 13:49Property customizations
- 14:23Only use it once
- 19:55Organization
- 21:58Summary
- 24:07References








