ra1028 / SwiftUI-Combine

This is an example project of SwiftUI and Combine using GitHub API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't resume preview canvas

JiangYiWork opened this issue · comments

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}

Are you using MacOS Catalina?

How did you resolve this?