Xcode 11 beta swift ui preview not showing

MadeByDouglas picture MadeByDouglas · Jun 20, 2019 · Viewed 34.8k times · Source

Just playing with Swift UI basic app and the preview canvas is not showing even though I'm in canvas mode. App runs, and I have this little snippet what am I missing?

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

Answer

Jadian picture Jadian · Aug 12, 2019

Maybe someone is looking for this: Editor -> Canvas (Alt + Command + Enter)