Fetching remote data using Combine and visualizing it in SwiftUI
However, it suits the reactive world nicely, as we'll see in this recipe.
We are going to implement a simple weather app, fetching the current weather and a 5-day forecast from OpenWeather, a famous service that also has a free tier.
After fetching the forecast, we present the result in a list view, with the current weather fixed on the top.
Go to the OpenWeather signup page (https://home.openweathermap.org/users/sign_up) and fill it with your data: