I'm confused. If I get an error, I just replace it with the other and it just works, but what I don't know is why it works. Both share the same value with the variable they're bonded to, so what's the difference?
What's the difference between binding ($) and .self?
With $ you access a var that has been declared as @State.
With self you access a "basic" var
With self you access a "basic" var
Binding and .self are completely different things, so it is hard to answer to what's the difference.what's the difference?
What sort of usages do you have in mind? Can you show some example codes including ones you get some error and need replacing?
With $ you access a var that has been declared as @State.
Haha. I can't believe I didn't notice that. Thanks a lot!With self you access a "basic" var