~/talk

Protocols All The Way Down

Talkat dotSwift 2018 · on Monday, 2018-01-29· [swift]

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

  1. 0:00Start
  2. 0:30Protocol Oriented Programming
  3. 2:44The Default Protocol Implementation Extension
  4. 3:58Discardable Result Annotation
  5. 5:40Conditional Default Implementation
  6. 13:33Pitfalls
  7. 16:21Custom Disappearing Navbar
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.