Skip to content
Tools
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Tools
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
Home
X vs Y
Swift
Languages
Swift X vs Y
Apple's compiled language for all its platforms and Linux.
All Swift pages
Swift struct vs class: value type or reference type?
Swift structs are value types copied on assignment; classes are reference types shared between variables, with inheritance and identity. Prefer a struct.
Esc