The Service Locator Pattern in Swift

Avoid Dependency Injection entirely!

Steven Curtis
2 min readOct 2, 2020

--

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.

Prerequisites:

--

--