Editor only view in XCode

Viewed 332

I am using swiftUI to write a new app. Every-time I open a new file the Canvas opens up. I want the default view to be "Only Editor" and I can open the canvas whenever I want to manually.

Is there a way to change the default?

2 Answers

Yes you can select "show editor only" via Xcode, this will always open the Editor, check the screenshot

Adjust Editor Option ---- show editor only

or Select any SwiftUI file then press Command + Enter(Return key) this will select the show editor only option.

enter image description here

Just uncheck Canvas as shown below and this state will persists and for new files and after Xcode restart. (Tested with Xcode 11.4)

demo

Caution: Without Canvas opened SwiftUI contextual menu items are not available in Editor. Just be aware.

Related