Updating value from view model to View in Swift UI

后端 未结 0 1428
醉梦人生
醉梦人生 2020-11-30 20:05

So I have a view model like this

class ChangeVehicleViewModel: ObservableObject {
  
     @Published var selectedIndex: Int = 0
     @Published private(set) v         


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