Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introducing Swift 5's Property Wrappers
Search
Erica Sadun
February 03, 2020
Programming
3.5k
0
Share
Introducing Swift 5's Property Wrappers
A brand new feature waiting for adoption
Erica Sadun
February 03, 2020
Other Decks in Programming
See All in Programming
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
300
CDK Deployのための ”反響定位”
watany
5
920
의존성 주입과 모듈화
fornewid
0
160
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.4k
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
180
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.5k
t *testing.T は どこからやってくるの?
otakakot
1
880
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
950
Programming with a DJ Controller — not vibe coding
m_seki
3
730
2026_04_15_量子計算をパズルとして解く
hideakitakechi
0
130
From Formal Specification to Property Based Test
ohbarye
0
640
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
150
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Context Engineering - Making Every Token Count
addyosmani
9
860
The Curious Case for Waylosing
cassininazir
0
330
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
The untapped power of vector embeddings
frankvandijk
2
1.7k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
330
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
220
A Tale of Four Properties
chriscoyier
163
24k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Crafting Experiences
bethany
1
130
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
Transcript
Property Wrappers erica sadun 1
Language-like but not Language 2
Language-like but not Language 3
Operators 4
5
6
Trailing closures 7
None
None
SwiftUI 10
None
None
None
Property Wrappers: History 14
Property Wrappers: History 15
Property Wrappers: History 16
None
18
None
My First Property Wrapper 20
String Trimming 21
22
None
Mandate your behavior contracts at the point of declaration, not
the point of use 24
25 Mandate your behavior contracts at the point of declaration,
not the point of use
None
None
None
‣ Simple ‣ Readable ‣ Positioned at the point of
declaration ‣ Documention-friendly
Uses ‣ Thread safety ‣ Barriers ‣ Syncing with stores
/ web services ‣ Validation on assignment ‣ Data configuration ‣ etc 30
Property Wrappers: Tastes like core language. Less filling. Fewer calories.
31
Property Wrappers erica sadun 32