In order to view this lesson, you must purchase this course.
A very common problem that many newcomers to iOS development experience is <b>Massive View Controller</b>. This issue stems from developers writing too much code inside of our view controller files, typically code that can be separated into its own classes. For example, in our previous lesson, we built out the Alamofire networking code directly inside of PodcastsSearchController which wasn't exactly the best place to put it.
In today's lesson, let's go ahead and perform some code refactor to move all network activity to an isolated class called <b>APIService</b>. This class's sole responsibility will be to perform network fetches for podcasts, episodes, and later downloading entire files for offline playback. Enjoy.