Categories
Mastering Development

SwiftUI โ€“ How to set a non static var from a static function

Iโ€™m currently following a series of lectures from Stanford to learn Swift (Code is from lectures 1-4 plus the homework Iโ€™m trying to complete) and am having an issue with setting an instance var(non-static) from a static function. I have gotten this to work but I would like it to be able to have different [โ€ฆ]