Sword – A compile time dependency injection library for Swift
Sword – A compile time dependency injection library for Swift
Hi HN! I made a compile time dependency injection library for Swift, inspired by Dagger. As you declare dependencies and specify how to satisfy them using Swift Macros, Sword automatically generates dependency injection code at compile time. Sword walks through your code and validates dependency graphs, ensuring that every object's dependencies can be satisfied, so there are no runtime errors. I would love to hear what you think about it!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Swift Library: UIFontComplete
SWookiee, a Swift Library for Swapi
SwiftData – A SQLite library in Swift
iOS UserDefaults library for Swift 4
ColorizeSwift – terminal string styling library for Swift
Trailer Swift
Populating a UITableView in Swift
2048 in Swift
Clojure-ish Lisp interpreter implemented in Swift
Get to grips with NSTimer in Swift