There are some situations where the creation of an object is inaccessible because of framework architecture, for example the creation of UIStoryboard occurs in a static/class method. Subclassing it won't help as ultimately we have no access to what happens in that method and can't replicate the creation in an overridden method without risking bypassing crucial setup code. There are plenty of other instances where we would still want to use injection, but can't rely on the injector creating the object.
For this reason it would be hugely useful to be able to pass an object to Objection and ask for injection to occur into the already created object. This functionality already exists in JSObjectionInjectorEntry::buildObject, though it is currently obscured from usage.
Essentially I am asking for something like:
Plan on adding this soon.
Added JSObjectionInjector#injectDependencies method which closes issue …