How to add an item to a global list var in parent view and have it reflect in ForEach in SwiftUI in a child view?

后端 未结 0 1472
自闭症患者
自闭症患者 2021-01-04 12:59

I created a model for an item "SportItem" that has simple properties (e.g. name: String). I then create a global sportData variable outside everything that has a l

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