SwiftUI: Where to place the .register() method to set an initial/default value for UserDefaults?

前端 未结 0 1435
灰色年华
灰色年华 2021-01-13 16:37

I am currently struggling to figure out where to correctly place the .register() method to set an initial/default value for UserDefaults (on every launch of the app).

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