i was adding a Ui to the watch and worked fine when i updated the UI with a $number variable also showed correctly.
but when sending values to the variable using updateWatchData getting some errors.
Accessing StateObject's object without being installed on a View. This will create a new instance each time.
can you just write a bit more in detail how to update with an example. this will help us better.
i was adding a Ui to the watch and worked fine when i updated the UI with a $number variable also showed correctly. but when sending values to the variable using updateWatchData getting some errors. Accessing StateObject's object without being installed on a View. This will create a new instance each time.
can you just write a bit more in detail how to update with an example. this will help us better.