Struct or class in Swift A nice rule of thumb when deciding what kind of object type to use in Swift is: Value types, that is a struct or an enum, are things, while reference types or classes, do things. Pasan Premaratne