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

前端 未结 0 1309
借酒劲吻你
借酒劲吻你 2021-01-04 12:34

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

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