I downloaded and installed XCODE beta 3 and this resolved this issue.
You can consider this closed.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: