UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Xcode resizing canvas when moving between files

Forums > SwiftUI

Hi there,

Has anyone else had the issue when moving between files (either by the horizontal bar at the top of the screen or the list on the left navigation menu) that the canvas gets resized?

I find that the canvas is expanded taking up 85% of the screen width within Xcode leaving the window with the code being squished with only about 12 characters of text per line being able to be displayed.

I know that I can pin the canvas, but I want the canvas to display the view for the current swift file I am editing.

It's not preventing me from coding, it just means that around 40% of the time when I change between swift files, I need to resize the canvas window which is quite frustrating.

Many thanks in advance!

3      

Small update:

It seems to only occur when I change from a swift file to a swift view file...

Am I missing something in the settings?

3      

Amazing that this is the top result on Google for an incredibly frusting problem when using Xcode with the canvas open.

It's to a point of frustrating where I'm considering going the screen automation route with something like Keyboard Maestro to figure out a solution to automate resizing it back the way it should be!

3      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.