Become a member
I’m the developer of the games Space Age and The Incident.
Apr 19, 2016
· 1 min
Struct-Style Printing of Classes in Swift
In Swift, printing a struct outputs its name and properties. But printing a class only outputs its name. Here’s why, and how to fix it.