'Xcode 12 SwiftUI cannot find Automatic Preview
I am working on an app in SwiftUI in Xcode 12.2.
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:
Where do I enable the Automatic preview and bring it back so I can see real-time updates of my UI?
Solution 1:[1]
An easy way to find it is from the menu "Editor > Canvas"
Solution 2:[2]
In your Xcode snapshot, there is a button the top right corner with a bunch of horizontal lines. Click it and then click Canvas and the preview should come back. FYI, the preview canvas is different than a Storyboard, which is what you included in the "What I want" image.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Peter F. |
Solution 2 | nicksarno |