2

When I try to add a simple out of the box SwiftUI view to my existing project and attempt to resume the preview nothing happens. I'm unable to see the preview no matter what. It does work for new projects though.

My setup:

  • Xcode 11.3
  • MacOS Catalina 10.15.2
  • Target iOS 13

I have tried fixing it by removing my build phases scripts (as suggested in a different post) but it didn't work.

This is my view's Code:

struct ContentView: View {
    var body: some View {
        Text("Hello")
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
pkamb
  • 33,281
  • 23
  • 160
  • 191

0 Answers0