Compared to many other programming languages, structs are very powerful in Swift. Hence, they should be used more often.
Hint: This post is using Swift 5
Similarities
First, let’s start by talking about the similarities between structs and classes. They actually have a lot in common:
* they have methods