I believe this is due to the closing bracket on the first VStack, I ran into the same issue and changing the placement of the closing bracket fixed it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: