Testing code often demands faking the “real world”. IoC plays a huge role in here where you flip the dependency from a concrete implementation to an interface.
This technique is very useful when you want to abstract away third-party code (think
UserDefaults), but there are instances where this is not enough. That’s the case when working with the camera.
On iOS, to use the camera, one has to use the machinery that comes with