Post

Replies

Boosts

Views

Activity

Comment on SwiftUI Sheet race condition
Alright, but what I wanted to highlight is that the value of myVar in the sheet’s View closure does not match the actual value in the outer ContentView, and it is never updated to reflect it’s new value (unless it is changed again). Is this expected as well? The .onAppear was just a way for me to check what value myVar actually had.
Feb ’24