~/talk

Flexible View Controller Interfaces With Swift 4

Talkat try! Swift NYC 2017 · 2017-09-05..09-06· [swift, frontend-architecture]
slides:none on file

Demonstrates using Swift 4 existentials to replace repeated storyboard casting by defining a small protocol for the interface, combining it with UIViewController via protocol composition, and exposing a single reusable type with a typealias combining protocol and UIViewController. Uses a demo app that flips a UserDefaults feature flag to swap two storyboard controllers (identifiers "legacy" and a new UI). Result: one safe cast, no duplicated setup code, and seamless runtime swapping.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Overview
  3. 2:14Perspective
  4. 4:16Miss headers
  5. 5:16Swift as a language
  6. 7:49Pros Cons
  7. 8:52Feature Flags
  8. 10:10Demo
  9. 12:59Lying to the compiler
  10. 14:10Adding a protocol
  11. 18:21Aliasing the protocol
~/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.