Protocols All The Way Down
summary
Shows how protocols with default implementations and conditional default implementations let code for showing and hiding a HUD be centralized across UIView and UIViewController subclasses how those layers compose into reusable mixins and how it actually works in an app including a real HUD that sometimes misses nav or tab bars and the fix of climbing to the enclosing controller explains the surprising dispatch bug where a protocol extension method is chosen over a concrete override and warns about overusing protocols versus subclassing with concrete lifecycle needs
AI-written summary · about
chapters (7)
- 0:00Start
- 0:30Protocol Oriented Programming
- 2:44The Default Protocol Implementation Extension
- 3:58Discardable Result Annotation
- 5:40Conditional Default Implementation
- 13:33Pitfalls
- 16:21Custom Disappearing Navbar








