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?
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?
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.
Just uncheck Canvas
as shown below and this state will persists and for new files and after Xcode restart. (Tested with Xcode 11.4)
Caution: Without Canvas opened SwiftUI contextual menu items are not available in Editor. Just be aware.