The good news is that it works in release builds, so obviously the bug is in Metal debugger. I was able to bypass the crash by disabling Metal API validation in the app's build scheme.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: