December 2018
Intermediate to advanced
414 pages
10h 19m
English
Swinject (https://github.com/Swinject/Swinject) is a lightweight Dependency Injection container written in Swift, which is used in more than 20,000 apps:

Swinject offers pure Swift Type Support, Injection with arguments, constructor and property Injection, object scope, and thread safety. Like Typhoon, in the Swinject repository, you can find a sample app that shows how to use the framework (https://github.com/Swinject/SwinjectSimpleExample).
Swinject's dependency-resolver engine is based on the concept of the container, where the classes and services are registered and then resolved:
var container = Container()// Registrations for ...
Read now
Unlock full access