This was done in Playground, just to simplify.
private var priv: String?
var myInstance = MyPrivateVar()
myInstance.priv = "Something"
Access modifiers in Swift are implemented differently than other languages. There are three levels:
private: accessible only within that particular file
internal: accessible only within the module (project)
public: accessible from anywhere
Unless marked otherwise, everything you write is
internal by default.