[Xcode 12.4, Catalina 10.15.6]
Note, whilst the above are the actions you use to get the view back, you must actually have a PreviewProvider in your view's source (at the bottom of the page by default). If you commented it out or deleted this struct, pressing the above keys does nothing.
struct NavigationPrimary_Previews: PreviewProvider {
static var previews: some View {
NavigationPrimary(selectedLandmark: .constant(landmarkData[0]))
.environmentObject(UserData())
}
}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: