UI elements not showing on Xcode

Viewed 246

When I click the '+' sign - it is meant to show UI elements such as Buttons, Slider etc.

But sometimes it doesn't show and I don't know how to fix it. See below:

enter image description here

Any idea?

3 Answers

SwiftUI elements (as well as SwiftUI menu items in context menu) are shown only when Preview Canvas is opened.

demo

In your case, as seen, Canvas is closed.

Open Canvas with your editor then you will get the UI controls view.

To add to my fellow helpers, here's where you find the canvas on/off :

enter image description here

Related