Injecting Services into Swift Apps for testing
It is much simpler than you might think!
While following through you might want to use the repo link to follow what is happening. The link is at the bottom of the page.
It makes sense to use dependency injection when creating your Swift Apps.