The Xcode Window
TrailLog is open in Xcode and the screen is full of panels. Beginners often lose a panel, then lose ten minutes hunting for it. The window has a simple shape; once you see it, you can always get back.
The rule
Toolbar on top, navigators left, editor centre, inspectors right, debug area below.
- Toolbar — the strip across the top. Run (▶, ⌘R) builds and launches; Stop (■, ⌘.) ends it. Next to them, the scheme (what to build) and the run destination (which simulator or device). In the middle, the activity view shows build progress, warnings and errors.
- Navigator area (left) — ways to find things. A row of icons switches between them: the Project navigator (files, ⌘1), Source Control, Symbols, Find (search the project), Issues (errors and warnings), Tests, Debug, Breakpoints and Reports. ⌘0 hides or shows the whole area.
- Editor area (centre) — where you work. It shows the source editor for code, Interface Builder for storyboards, or the SwiftUI canvas. You can split it, and the assistant editor shows a related file side by side, such as a storyboard next to its view controller.
- Inspector area (right) — details about whatever is selected: file information, or a view's size, colour and constraints in Interface Builder. ⌥⌘0 toggles it.
- Debug area (bottom) — variables and the console while the app runs. ⇧⌘Y toggles it.
Two more keys worth learning early: ⌘B builds without running, and ⇧⌘O (Open Quickly) jumps to any file or symbol by typing part of its name.