Exploring the editor
Now we have a pretty good idea of what all the different parts of the Xcode window do and how they work together. We covered the two sidebars and the debug area in a good amount of detail, but now let's take a closer look at what the main editor can do.
Standard editor
Let's take a look at some of the different configurations for the editor. In your navigation sidebar, you can see a list of files. Right now, the HelloWorld
project file is selected. Clicking on a file will make that the active file and open it in the editor. Select the ViewController.swift
file and you'll see the editor change to show the source code:
You'll also notice that at the very top of the editor window is a hierarchy bar view starting at the root project (the blue icon), going through folders and files, ending at No Selection
. If you click your cursor around at different points in the source file, you'll see that No Selection
changes depending...