79201262

Date: 2024-11-18 20:02:22
Score: 0.5
Natty:
Report link

I'm not so sure, but the following might work:

...
@State private var myData = MyObservableObject()
...
VStack {
   //display stuff here
}
.task {
   myData.fetchStuff()
}
.onReceive(Just(myData.isReady)) { //<--- here
   if myData.isDoneFetching {
       formatUIData()
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Nik