VIPER architecture: submodules in a module

I have a VIPER ( SubjectList) module in which I want to have more in common HeaderModulewith SubjectListCollectionModuleand a BlockModule. At what point would I logically add HeaderModule?

I could enable modules in SubjectListViewModel, but I could also make them in SubjectListViewby creating them through the Builder interface using xibs. What is recommended?

+4
source share
2 answers

I recently made a sample project that is built using the VIPER architecture with a codegen tool called Generamba.

Here is the project: https://github.com/dimklo/ViperSample

News. NewsTable NewsFilter. presentNewsFilterModule presentNewsListModule.

- , , , - .

+1

xib - , Interface Builder. VIPER.

+1

Source: https://habr.com/ru/post/1693577/


All Articles