Solution as in XCode 12.2 (yeah, it still happens)
Create a new SwiftUI-file and paste the code from within the { ... } in the new template.
Works.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: