Dependency Injection in Swift — Part 1
Juan Cazalla
6609

I really like this approach. After using default values and also trying out Swinject, I’ve been experimenting with a “Container” class that registers and resolves dependencies via closures. It works well but I plan on giving this solution a try.