SwiftUI how to pass data from network request as dependency to child view

前端 未结 0 1724
无人及你
无人及你 2021-01-14 15:11

I have a parent view with viewModel and a child view with a dependency.

struct ContentView: View {
    @ObservedObject var viewModel = MyViewModel()

    var          


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