Property Wrappers
summary
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
chapters (6)
- 0:00Language extension philosophy
- 1:36Examples of Swift extensions
- 5:17Swift UI and property wrappers
- 7:15History of property wrappers
- 10:51Use cases and design
- 14:06Benefits and conclusion








