Dependency Injection in Swift using latest Swift features

Dependency injection is a commonly-used technique to enable simplified testing and code reuse. In this post, Antoine Van Der Lee shows us how to avoid using third-party dependency injection libraries, providing his implementation of dependency injection for Swift types using static subscripts, extensions, and property wrappers.