Post

Replies

Boosts

Views

Activity

@AppStorage not updating views correctly
I'm using @AppStorage to store an Int value, and I have a Text view that uses this value. I also have a Button that increments this value, but the Text view is not updating correctly when the value changes. It's a hit or miss. Sometime the view updates right away, sometimes it doesn't. Relaunching the app reflects the updated values. Is this a bug?
1
2
2.5k
Jul ’20