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 回答1: To preview and interact with views from the canvas in Xcode, ensure your Mac is running on Catalina MacOS . https://developer.apple.com/tutorials/swiftui/creating-and-combining-views Please check apple