The Swift Package Manager is the Swift Army Knife that allows you to manage your code dependencies, share your own packages, and use the libraries created by others. It's an extremely important tool, one that you need to know in order to do anything productive with Swift. My goal is to provide you with a quick overview and then dive into some examples so we can use it in an example to solidify the core concepts.
Like other languages, Swift allows you to organize and group your Swift code. Swift refers to these groupings as modules. Modules in Swift allow the developer to enforce control on the functionality that is exposed publicly (outside of the module) and the functionality that is only visible within the module.
As developers, we use modules that we create or that other developers create to write our software. When we use other developers' modules, we create a dependency on their code. Swift allows us to create a package, which consists of the Swift code we write...