~/talk

5 Steps to Better SwiftUI Views

Talkat iOS Conf SG 2021 · 2021-01-20..01-21· [swift]
slides:none on file

A concise set of five steps shows how to shrink massive SwiftUI views by doing real things: carving UI into separate view structs, moving conditional and action code into properties and methods, creating reusable text modifiers and platform-aware extensions, and implementing a custom button style for pressed-state visuals. A small sandbox app (listing rows, headers, map toggle, toggle favorite action) is built and run live to prove each refactor keeps behavior while improving testability and readability.

AI-written summary · about

  1. 0:00Start
  2. 3:04Add and Remove Favorites
  3. 17:14Step Three Which Is Getting Action Code out of Your Views
  4. 17:25Action Code
  5. 25:09Custom Methods
  6. 26:48Use Styles
  7. 27:51Button Style Protocol
  8. 30:26Summarize
~/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.