hmlongco / Resolver

Swift Ultralight Dependency Injection / Service Locator framework
MIT License
2.14k stars 188 forks source link

Add ability to forward arguments #89

Closed Coledunsby closed 3 years ago

Coledunsby commented 3 years ago

Allows for forwarding arguments when there are multiple.

Example:

register { _, args in SomeViewController(viewModel: resolve(args: args)) }
register { _, args in SomeViewModel(arg1: args("arg1"), arg2: args("arg2")) }

Currently,

hmlongco commented 3 years ago

Just pushed pod 1.4.1 with this change.