Creating and managing files
So far on our tour of Xcode we've been looking at and fiddling with all of the files that were automatically created when we started the project. Now we're going to take a look at the different types of resources that are used in a typical Xcode project and how to create, import, and manage them.
Resource types
While the number of resource types that Xcode can handle is quite large, there are only three resource types that you'll need to know about for most use cases. These are the Swift file, the Storyboard, and the Asset Catalog. We've already seen an example of all three resource types, but before we continue we should get a better understanding of what they are used for and how they work.
A Swift source file is a text document that contains source code written in the Swift programming language. Normally, you'll have one class per file, but you can technically declare as many classes, structs, and so on in a source file as you like. We...