Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Xcode  ›  Lesson

The Xcode Window

Interface overview 12 minThe Xcode window has a toolbar on top, navigators on the left, the editor in the centre, inspectors on the right and the debug area at the bottom.

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.

The shortcut

When you need something, ask "Am I finding, working, inspecting or watching?" — finding is left, working is centre, inspecting is right, watching a running app is bottom.

Fixing a TrailLog build errorStep 1 of 4
  1. Press ⌘B

    The activity view in the toolbar shows a red error count. Something is wrong.

The trap is searching menus for a panel you closed. Use the shortcut keys: ⌘0 left, ⌥⌘0 right, ⇧⌘Y bottom.

Drills

Answer fast — trust the rule.

quick drill

Where do you choose whether TrailLog runs on an iPhone 16 simulator or your own phone?

quick drill

You want a list of every error and warning in the project. Where do you look?

quick drill

A button in a storyboard is selected. Where do you change its title colour?

quick drill

Which shortcut builds and runs the app?

Remember

  • Toolbar on top, navigators left, editor centre, inspectors right, debug area below.
  • Shortcut: finding → left, working → centre, inspecting → right, watching → bottom.
  • Lost a panel? ⌘0, ⌥⌘0 and ⇧⌘Y bring the areas back.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainGuide a new teammate

A new teammate must find where saveHike is defined, change a label's font in the storyboard, and read a print message while the app runs. Tell them which area of the Xcode window to use for each step and one shortcut that helps.