Dependency Injection with Storyboards

Written on April 8, 2017 at 12:02 pm
Category: Swift

I’d been using Swinject for a while, but was never satisfied. All I need for DI is the ability to inject into ViewControllers, including subclasses. After way too much time trying to add subclass support, it was much simpler to just write my own implementation.


It includes unit tests for macOS, and it should work for iOS, but I haven’t tested that yet (the iOS version of my current app is pretty far behind).