I have the same problem in Xcode 13.3.1, macOS 12.3.1, iOS 15.4. Sometimes I wonder if Apple is serious about supporting SwiftUI. This seems like a really basic bug in an extremely common code pattern.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: