Instruct Your View With A ViewModel: Should It Be A Class or a Struct?

Another choice?

Steven Curtis
3 min readDec 1, 2022


Photo by Drew Saurus on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.0.1, and Swift 5.3


struct: An object defined in Swift, using pass by value semantics