Do all @Published variables need to have an initial value in a view model for SwiftUI?

前端 未结 0 1781
无人共我
无人共我 2020-12-09 05:07

Do all @Published variables need to have an initial value in a view model (I am conforming to MVVM) for SwiftUI?

So does that mean that I need to have:

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