Enum reducer and .sheet(item:onDismiss:content:): Make cases have different ID #3678
Unanswered
jessedoescode
asked this question in
Q&A
Replies: 1 comment · 3 replies
-
This seems like the expected behaviour to me - you're using a single |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! Apple's docs on sheet(item:onDismiss:content:) state on the item:
However, if I'm doing:
SwiftUI won't recognize a change to the enum case and won't animate the sheet disappearing and reappearing with the new content, as the id handled by scoped store remains the same? Or have I omitted something. The behaviour I'm seeing is that the sheet content does change, but the sheet does not dismiss and reappear, but instead stays open constantly.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions