Create array from ForEach loop

后端 未结 0 367
伪装坚强ぢ
伪装坚强ぢ 2021-02-07 17:49

I want to create an new array from JSON data instead of hard coded data below

let data: [DataPoint] = [
    .init(value: 20, label: "1"),
    .init(valu         


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