Skip to content

TyphoonLoadedView

Igor Vasilenko edited this page Jul 13, 2016 · 4 revisions

Imagine case when we have an UITableView with custom cell's with some dependencies like Presenter, Animator, Router, ViewModel, etc. How you will be passing this dependencies to your custom cell?

For solving this problem was implemented TyphoonLoadedView.

TyphoonLoadedView works really simple.

It's just override - (id)awakeAfterUsingCoder:(NSCoder *)aDecoder, search view definition for typhoon key from [TyphoonComponentFactory factoryForResolvingUI] and returns replacement view from definition.