How can I access an EnvironmentObject from within a NSViewRepresentable / UIViewRepresentable 's Coordinator class?

前端 未结 0 621
傲寒
傲寒 2021-01-06 16:22

I got an EnvironmentObject named appState, which is accessed through some of my views to share data / states. The way I use them in a view is like this:

struc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题