Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Swift
/
Property wrappers
For @Rule var score: Int, which synthesized-name description is accurate?
from Property wrappers
Swift 6.3.3
beginner
1 min
For @Rule var score: Int, which synthesized-name description is accurate?
score exposes wrappedValue, _score stores the wrapper privately, and $score exists only when Rule defines projectedValue.
score stores Rule, _score stores Int, and $score is always a Binding<Int>.
_score and $score are both public aliases for the wrapper instance.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in Atomic increment
Spot the bug
A new version is available
Reload