SWiftUI Inspector unavailable in XCODE Preview Canvas

I am developing a Mac app using SwiftUI and XCODE 13. I have the preview displaying, and while the SwiftUI Inspector is available when I command click in the source code, it is not available in the preview pane. The icon for the inspector in the menu above the preview is grayed out as is the icon to duplicate and the inspector icon at the bottom of the window.

These icons are present in a similar app from which I adapted the views.

Mark

Hi,

Sorry to hear you are having problems getting the previews canvas working as expected. Best bet would be to file a feedback with a screen recording show interactions that do and don't work, as well as a test project where the issue reproduces.

SWiftUI Inspector unavailable in XCODE Preview Canvas
 
 
Q