Public Getters and Private Setters in Swift
You have a public
struct, and want the client of the object to be able to access a property but not set it. What to do...
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 11.5, and Swift 5.2.4