While this isn’t a book on Combine, I do want to go through a few more things from the framework. Hopefully, this chapter will give you an idea of how to approach using Combine. Also, I hope that you’ll see a more direct path for learning more in using this powerful framework.
In this chapter, we’ll look at fetching data. We’ll use a publisher and subscriber for that. We’ll fetch data from a server which will lead to updating the UI. For testing/preview, we’ll alternatively load data from a file also.
URLSession Publisher
If you’ve used URLSession before, you’re familiar with creating a ...