xcodeswiftui

SwiftUI Inspector gone in Project


In one of my Xcode projects, the SwiftUI Inspector won't show anymore.

Example: enter image description here

When I create a new project, I have the inspector:

enter image description here

Any idea what is causing this? Can I maybe reset the settings of the project?


Solution

  • You must have Canvas opened to have SwiftUI context menu items in Editor (including SwfitUI Inspector)

    Activating canvas