Why do I not able update a State value inside of init() of a View in SwiftUI?

后端 未结 0 1746
旧时难觅i
旧时难觅i 2020-12-01 04:08

I want update my State value inside init of View, I know that I can use .onAppear() but I want to done it with init(), thanks for help.

This code seems does not w

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