In the previous episode, we added the ability to define how the MockClient
class responds. This added flexibility makes the MockClient
class much more useful. In the next episode, I show you how we can use the MockClient
class to unit test the FeedViewModel
class.
Subscribe to Cocoacasts Plus to watch this episode.
From Zero to App Store
Populating the Feed: Reducing Code Duplication With Generics
by Bart Jacobs in Programming
Swift 5
Xcode 11
iOS 13
From Zero to App Store
-
03:31
-
10:30
-
13:26
-
9 Adopting the Coordinator Pattern
13:15
-
19 Populating the Feed: Reducing Code Duplication With Generics
07:09