You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having difficulty triggering a partial sheet from a @published variable within my ViewModel. However, the same partial sheet triggers as expected when using a @State variable within the View.
Here is the code snippet that is not working as expected:
I'm having difficulty triggering a partial sheet from a @published variable within my ViewModel. However, the same partial sheet triggers as expected when using a @State variable within the View.
Here is the code snippet that is not working as expected:
When tapping the "globe" image, the partial sheet is not triggered, despite vm.isPresented being toggled.
Expected Behavior:
I expect the partial sheet to be presented when the @published variable isPresented is toggled in the ViewModel.
Actual Behavior:
The partial sheet is not being presented when the @published variable isPresented is toggled in the ViewModel.
Could you please help me understand why this is happening? Is this a bug or am I missing something?
The text was updated successfully, but these errors were encountered: