Instance member cannot be used on type
You just have syntax error when saying = {return self.someValue}. The = isn’t needed. Use : if you want get only you can write with the first way you can also add observers as set willSet & didSet allowing to use = operator as a setter