How to use it

CocoaPods should be integrated in your project. You can do this by simply adding a single file in the project root folder. In this special file, you should describe all dependencies that you need. Under dependency, we will understand an external framework (set of classes). Then, the rest will be handled by the dependency tool. It will fetch the referenced classes and assets and will link those versions to your project. The configuration file is called Podfile.

Open your project and add a new empty file, whose name is Podfile.

The file doesn't have any extension.

You can use Xcode to create this file. Just click on File | New | Empty  and name this new file Podfile, as shown in the following screenshot:

We are using Swift in ...

Get Learn Swift by Building Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.