I had this same problem. Couldn't find a solution so I had to force-quit Xcode and re-open. That solved it for me. Seems like a bug of some sort.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: