ra1028 / SwiftUI-Combine

This is an example project of SwiftUI and Combine using GitHub API.
MIT License
451 stars 30 forks source link

I can't resume preview canvas #1

Closed JiangYiWork closed 5 years ago

JiangYiWork commented 5 years ago

My environment is ok, as my new initial project with SwiftUI can resume preview canvas. But, in this project, I can't see preview canvas.

When I add below section:

#if DEBUG  
struct ContentView_Previews : PreviewProvider {  
    static var previews: some View {  
        SearchUserView()  
    }  
}  
#endif  

I got:

SwiftUI-Combine-Example.app: Error Domain=render service Code=12 "Rendering service was interrupted" UserInfo={NSLocalizedDescription=Rendering service was interrupted}

bfernandesbfs commented 5 years ago

Are you using MacOS Catalina?

Ryann786 commented 4 years ago

How did you resolve this?