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
/
Extensions
What does @retroactive mean on a Swift protocol conformance?
from Extensions
Swift 6.3.3
advanced
1 min
What does @retroactive mean on a Swift protocol conformance?
The module acknowledges that it owns neither the type nor protocol and accepts the conformance-conflict risk.
The conformance is visible only inside the declaring source file.
The runtime dynamically removes the conformance if an upstream module adds one.
The compiler gives this conformance priority over all other implementations.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated customer extensions
Review AI code
A new version is available
Reload