Swifjection – lightweight and simplistic dependency injection framework written in Swift for Swift .
The main idea behind this project is to achieve DI for Swift objects that does not inherit from Objective-C classes.
We built Swifjection for our use in the first place. These are the key points what was our motivation:
NSObject
in order to inject dependenciesSwift
types you just need to conform to simple Injectable
protocolNSObject
sublcasses, or classes conforming to Injectable
protocol