~/talk

The Swift Behind SwiftUI

Talkat Hacking with Swift Live 2019 · 2019-07-08..07-09· [swift, ios]
slides:none on file

Starts from the SwiftUI template and reproduces the real errors: adding a print forces a required return because of implicit single-expression rules; opaque return type (some View) demands a single concrete view so if/else branches must match; demonstrates function builders (ViewBuilder) behind VStack syntax; shows @State implemented with property wrappers and builds a working slider bound to state. Includes a rounding property-wrapper example, a mood app that maps model→viewmodel with map, and Combine examples using map and flatMap to decode notifications without dropping the subscription.

AI-written summary · about

  1. 0:00Swift syntax enhancements
  2. 4:58Opaque return types
  3. 8:12Working with function builders
  4. 10:30Property wrappers in action
  5. 16:17Map for collections and optionals
  6. 23:05Combine with map and flatMap
~/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.