By showing you how to consume an external API, we will make our application a working one. It could be used on a daily basis and will add value to the users. We should know that many applications rely on complex backend APIs to do the heavy lifting, and communication through the internet is a key part of modern mobile development.
In this chapter, we will discuss the following topics:
- How to fetch data from a real weather forecast API
- How to add Alamofire to our project
- How to make a request
- How to parse a response
- How to present the data from the server
- Other different improvements using third-party libraries
In the following section, we describe an open weather forecast API, which we can use in our application.