Swiftpack.co - Package - devxoul/PureSwinject

PureSwinject

Auto register Pure factories to Swinject

Usage

Before

container.register(MyModule.Factory.self) { r in
  MyModule.Factory(dependency: .init(
    foo: r.resolve(Foo.self)!,
    bar: r.resolve(Bar.self)!
  ))
}

After

container.autoregister(MyModule.Factory.self, dependency: MyModule.Dependency.init)

License

PureSwinject is under MIT license. See the LICENSE file for more info.

Github

link
Stars: 12

Dependencies

Used By

Total: 0

Releases

- 2020-10-03 10:10:29

  • Ensure thread safety

1.2.0 - 2020-09-30 21:08:27

  • Lazy resolve dependencies

- 2020-09-30 20:26:25

Hello, world :wave:

- 2020-09-30 20:24:28