I am also able to reproduce a crash using the provided code; however, it does not immediately crash for me; rather, if I select the text then it will crash (with a metal-related error).
I'm running MacOS Sequoia (15.5) with XCode Version 26.0 beta 4 (17A5285i).
Topic:
UI Frameworks
SubTopic:
SwiftUI