I found a work around. In the detail view, I don't edit the grouping field directly and instead use a @State var to edit the grouping field. Then I hide the back button and use a custom back button, that will set the grouping field right before I dismiss the view. That way the view stays in place until they hit the back button.
Is there a better way to do this?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: