Learning Swift
Use Swift Struct For Total Immutability
The many ways to prevent mutability of Swift’s struct
In Choosing Between Structures and Classes , the document provides us some guides of when to use Class and when to use Struct.
The reasons to use Struct given as are below.
- Use Structures When You Don’t…