~/talk

How to Think Like a SwiftUI ViewModifier

Talkat Swift Heroes Digital 2021 · 2021-04-15..04-16· [ios]
slides:none on file

Explains that a ViewModifier makes copies of the view and transforms each copy, so calling border/padding/background repeatedly stacks wrappers and order matters (padding before border, background after padding to include spacing). Shows the ViewModifier protocol (Content->View) and builds three concrete modifiers: a mirrored swipeable row with customizable buttons that uses an invisible ZStack to preserve row height and works with gestures, and a tap-to-unblur that uses state plus a DispatchWorkItem to reset blur.

AI-written summary · about

  1. 0:00Intro
  2. 2:18Why SwiftUI
  3. 4:22First SwiftUI Experience
  4. 14:12What is a ViewModifier
  5. 22:41Reflection
  6. 26:18Tap to Unblur
  7. 38:51Wrap Up
~/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.