|
Hello dear swiftui learners;-) I have been trying to create a simple workout application, hovever it seems I have skipped some basics and can't make my views update on property change here is my code:
if I add new activity to activities it will work, but if i try to update property of existing activity it's no luck. chatgpt suggested to change struct to class - not working
another suggestion was objectWillChange.send() - not working
I have been trying everything, can somebody please help me? thank you! Peter |
|
@Peter is stuck and offered this observation:
Yes! Yes you have. I wonder where you learned about |
|
for these interested.. https://www.hackingwithswift.com/books/ios-swiftui/sharing-swiftui-state-with-observable answers my question if I understand it right
can't help myself but I am finding swift and especially swiftUI too magic for my taste can somebody please explain me what is going on? |
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.