Your app is crashing. Unfortunately there's nothing in the code you showed that would cause a crash. You have /*@START_MENU_TOKEN@*/ and /*@END_MENU_TOKEN@*/ tokens in the code listing, but my guess is that's a copy paste error. Your project wouldn't build if those tokens were in your actual code.
Add an exception breakpoint in Xcode. When your app crashes, Xcode will pause your project, showing you the code where the app crashed.
In Xcode choose Debug > Breakpoints > Create Exception Breakpoint to add an exception breakpoint.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: