~/talk

Property Wrappers

Talkat dotSwift 2020 · on Monday, 2020-02-03· [swift]
slides:none on file

Swift 5.2 introduces property wrappers that move repetitive property logic out of the compiler into reusable libraries; the talk shows a complete UserDefaults sync wrapper that automatically persists assignments, a string trimming wrapper that enforces trimming at declaration not use, and uses for thread safety and barriers. The feature is part of SwiftUI and Combine, was repurposed from property behaviors, accepted July 2019, and demonstrably reduces boilerplate while working in real code.

AI-written summary · about

  1. 0:00Language extension philosophy
  2. 1:36Examples of Swift extensions
  3. 5:17Swift UI and property wrappers
  4. 7:15History of property wrappers
  5. 10:51Use cases and design
  6. 14:06Benefits and conclusion
~/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.