How to associate a block of code with a @State var when it changes

前端 未结 0 1897
面向向阳花
面向向阳花 2020-12-01 06:40

Whenever the value of the @State variable myData changes I would like to be notified and store that data in an @AppStorage variable

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