Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11 beta swift ui preview not showing

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 
like image 919
MadeByDouglas Avatar asked Jun 20 '19 02:06

MadeByDouglas


People also ask

How do I show canvas in Xcode?

The Preview Canvas If the canvas is not visible it can be displayed using the Xcode Editor -> Canvas menu option.


1 Answers

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

like image 157
Jadian Avatar answered Oct 11 '22 03:10

Jadian