Christian Bain
Christian Bain

Reputation: 76

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:

My XCode without the automatic preview

Where do I enable the Automatic preview and bring it back so I can see real-time updates of my UI?

Upvotes: 3

Views: 2010

Answers (2)

Peter F.
Peter F.

Reputation: 246

An easy way to find it is from the menu "Editor > Canvas"

Upvotes: 4

nicksarno
nicksarno

Reputation: 4245

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.

Upvotes: 0

Related Questions