~/talk

And that's a wrap

Talkat FrenchKit 2019 · 2019-10-07..10-08· [swift]
slides:none on file

Concrete demo of Swift 5.1 property wrappers: a clamped generic wrapper that enforces 0–1, a user defaults wrapper exposing $key and a projected value API for undo/history, plus a wrapper that makes one property Codable without hand‑writing all Codable methods. Compiler actually generates a private _property and a computed property, injects init right‑hand side into wrapValue, and $property returns projectedValue. Limitations: only one wrapper per property, only for properties, and it’s syntactic sugar relying on the Swift 5.1 compiler.

AI-written summary · about

  1. 0:00Intro
  2. 1:04Imagine you want this
  3. 2:00Create reusable behavior
  4. 5:02Introducing Property Wrappers
  5. 5:55Compiler-Generated Code
  6. 8:08Generics and Custom Range
  7. 11:31UserDefaults
  8. 13:59Accessing the Wrapper
  9. 17:17Projected Value
  10. 21:35Property Wrappers and Codable
  11. 23:49And that's a Wrap!
~/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.