Inside iOS Dev

Blocked by the backend? Use prod mocks.

03.29.2022 - By Alex Bush, Sandeep AggarwalPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

In this episode Sandeep and Alex showcase how mocks can be used in production code to substitute upcoming unfinished or unreleased backend changes. They use dependency injection and Liskov Substitution Principle to inject a service object implementation that uses local hardcoded data instead of fetching it from the network.

More episodes from Inside iOS Dev