DIKit
DIKit copied to clipboard
A statically typed dependency injector for Swift.
- Bump swift-tools-version to 5.5 - Bump [jpsim/SourceKitten](https://github.com/jpsim/SourceKitten) - Fix for https://github.com/jpsim/SourceKitten/pull/639 - Others - https://forums.swift.org/t/se-0294-declaring-executable-targets-in-package-manifests/42404/11 - https://github.com/apple/swift-evolution/blob/master/proposals/0156-subclass-existentials.md#class-and-anyobject ## Environment - Xcode 13.2.1 (13C100)
Tried making some improvements to the readme. Hope this helps.
Hi, @ishkawa I'm using your library in product and CI. I noticed that it always fails building in CI. To use this library in Xcode 10 (or above) and CI,...
Currently, DIKit is not available for projects that include App Extension.
I am super interested in this project and recently started working on a similar concept but I think it would be best to help contribute to this project instead. What...
When I define a class that conforms to Injectable and has a closure in its Dependency like below: ```swift class SomeModel: Injectable { struct Dependency { let stringFactory: (Int) ->...
Currently, unavailable to build macOS framework by Carthage. This problem is caused by [this](https://github.com/Carthage/Carthage/blob/368a13ea6e3e30b22c007cb2be1906f7dc92f055/Source/XCDBLD/BuildArguments.swift#L109). I changed the `Architectures/Base SDK` to macOS and solved it.
Currently, `dikitgen` expects that `Injectable.Dependency` is declared as a struct. Structs can have computed properties and methods, but the type elements are not related to declaring dependencies. I think `Injectable.Dependency`should...
Although it has problems, got better.
Rough sketch: ```swift final class Counter { var value = 0 } protocol MyResolver: Resolver { // A MyResolver instance always returns the same instance of Counter. func provideCounter() ->...