In the Xcode, you have three separate areas of working - Navigators (in red), Debug area(in green) and Utilities(in blue).
The workspace window always includes the editor area. When you select a file in your project, its contents appear in the editor area, where Xcode opens the file in an appropriate editor. For example, in the image above, the editor area MainViewController.swift, a swift code file that is selected in the Navigator area on the left of the workspace window.
The navigator window contains the following eight options:
Most development work in Xcode occurs in the editor area, the main area that is always visible within the workspace window. The editors you use most often are:
Source editor. Write and edit source code.
Interface Builder. Graphically create and edit user interface files.
Project editor. View and edit how your apps should be built, such as by specifying build options, target architectures, and app entitlements.
Configure the editor area for a given task with the editor configuration buttons on the right side of the toolbar: