There are several ways to both download and install third-party code, whether it be a single source code file, or an entire framework (including any other frameworks it depends on):
- Downloading, installing, and updating source code files manually
- Using the Swift Package Manager
- Using third-party package managers, such as Cocoapods or Carthage
We will focus on the first two of these methods. The first is probably the simplest under many circumstances, and the second probably has the brightest future.
We'll use Ruoyu Fu and Pinglin Tang's SwiftyJSON framework, for a number of reasons that pertain to this chapter:
- It's easy to install and test
- It can be installed by any of the aforementioned methods
- You might like it and find a use for it
The GitHub repo, including all the docs, can be found here: https://github.com/SwiftyJSON/SwiftyJSON.
This is not to say that I think...