Calin, this writeup was great. I was pretty stuck...
Without understanding why it worked, I used method 3 in one part of my codebase (before finding your article) and later tried to adapt the usage of @didset inside of my viewModel on the @State variables. 🤦♂️
Still working on the refactor, but this clarified a lot. Thanks for saving me the trouble.
I am a software developer passionate about mobile technologies.
iOS/React Native.
When I'm not coding, I like cycling, craft beers, whiskey and going to rock concerts with my wife.
I was in the same situation as you. It required more internet research than expected (at that time at least).
Either way, I feel SwiftUI has a pretty steep learning curve and searching for specific patterns requires a lot of googling + trial and error.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Calin, this writeup was great. I was pretty stuck...
Without understanding why it worked, I used method 3 in one part of my codebase (before finding your article) and later tried to adapt the usage of @didset inside of my viewModel on the @State variables. 🤦♂️
Still working on the refactor, but this clarified a lot. Thanks for saving me the trouble.
Hi, Trent! I am really happy it helped you :)
I was in the same situation as you. It required more internet research than expected (at that time at least).
Either way, I feel SwiftUI has a pretty steep learning curve and searching for specific patterns requires a lot of googling + trial and error.