The Service Locator Pattern in Swift

Avoid Dependency Injection entirely!

Photo by QuickOrder on Unsplash

The service locator pattern is designed to encapsulate the processes invovled in obtaining a service with a strong layer of abstraction.