palasthotel / wind

dependency injection container in pure swift
9 stars 2 forks source link

Add Storyboard Dependency Injection Support #3

Closed mkernel closed 7 years ago

mkernel commented 7 years ago

For now we can only inject stuff handled by the container. However view controllers are often created by the storyboard. We need a way to interact with it.

mkernel commented 7 years ago

Btw. we should also allow the storyboard components to be registered as components for other dependencies. Therefore we might need some kind of "late to the party" dependency resolution for stuff which is not available all the time.

And: as those objects have their own life cycle we need to tie them in using weak references.