~/talk

Writing Your UI Swiftly

Talkat try! Swift Tokyo 2017 · 2017-03-02..03-04· [ios, accessibility]
slides:none on file

Four concrete patterns streamline UI code in a production-sized Swift app that fetches Star Wars films and shows the opening crawl: use a Result enum with associated values (Rob Rix) to eliminate ambiguous success/error combos and simplify view controllers; use Cartography operator overloads to express Auto Layout as readable equations; model display as an enum-based view state to centralize show/hide logic; share behavior with protocol default implementations to remove duplicated UI code.

AI-written summary · about

  1. 0:00Start
  2. 0:56Patterns!
  3. 6:44Old-school
  4. 14:09Enums to the rescue!
  5. 16:24Pete and the Repeated Code.
  6. 16:59Protocols save the day!!
  7. 18:28Default protocol implementation
  8. 20:23Conclusion
~/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.