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
Which statement is correct in Swift 6 language mode?
from Property wrappers
Swift 6.3.3
advanced
1 min
Which statement is correct in Swift 6 language mode?
A wrapped property may have willSet or didSet, but cannot define its own get or set, and a global-actor wrappedValue does not isolate the whole enclosing type by outward inference.
A wrapped property cannot have observers, and @MainActor on wrappedValue always isolates the enclosing type.
A wrapped property may replace the synthesized getter, but only inside a structure.
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload