[英]XCode 12 SwiftUI cannot find Automatic Preview
I am working on an app in SwiftUI in XCode 12.2.我正在开发 XCode 12.2 中 SwiftUI 中的应用程序。
I have accidentally deleted the Automatic Preview Tab.我不小心删除了自动预览选项卡。 I cannot seem to find the option to bring it back.
我似乎找不到将它带回来的选项。 Here is a screenshot of my XCode: My XCode without the automatic preview
这是我的 XCode 的屏幕截图:我的 XCode 没有自动预览
Where do I enable the Automatic preview and bring it back so I can see real-time updates of my UI?我在哪里启用自动预览并将其恢复,以便我可以看到我的 UI 的实时更新?
An easy way to find it is from the menu "Editor > Canvas"一个简单的方法是从菜单“编辑器 > 画布”中找到它
In your Xcode snapshot, there is a button the top right corner with a bunch of horizontal lines.在您的 Xcode 快照中,右上角有一个带有一堆水平线的按钮。 Click it and then click Canvas and the preview should come back.
单击它,然后单击 Canvas,预览应该会返回。 FYI, the preview canvas is different than a Storyboard, which is what you included in the "What I want" image.
仅供参考,预览 canvas 与 Storyboard 不同,这是您在“我想要的”图像中包含的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.