4.5. Wrapping up: structuring the files
Now, your project structure should look like the following:

Although we have separated the Views from the Controllers, we still may find this structure cluttered. So, we want to put the files in separate groups for better readability.
Select the files related to the first screen (FirstScreenView and ViewController). To select both files together, press Command + click on the intended files.
Right-click on the selected files and select New Group From Selection. Name the group as 'First Screen'
Create the group of files (DisplayView and DisplayViewController) for the second screen similarly.

Now, the structure looks a lot better!!! 🎉
Previous4.4. Navigation Controller and sending data from screen 1 to screen 2Next4.6. Reference Code
Last updated
Was this helpful?