This problem still appears to be a bug in Xcode 13.0 using SwiftUI. The dismiss() works fine in my case until I select a toggle button on that view. Then the dimiss() stops working.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: