使用静态var将变量保存在Swift Playground中的其他结构中

I implemented the code given in this answer with the most votes. But when I tried to change the variable in my ContentView struct, it didn't update in the MyVariables struct. Any way to solve this?

评论