Unable to access @EnvironmentObject from a child view constructed with a function

前端 未结 0 753
闹比i
闹比i 2020-12-12 21:56

I\'m trying to pass an EnvironmentObject to child views but am having no luck with the following code.

struct ContentView: View {
  enum MyViews: Int, CaseIte         


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