Where does notification observers fit in the VIPER pattern?
Asked Answered
V

1

9

I am changing my project to VIPER pattern.

I got a lot of observers for my main view. I don't find where should I place my observers in VIPER .

Because i don't want to place my observer in view . Previously I had separate class for observers and when there use to be notification , I use to update to main view.

But in new VIPER i don't know where is best place.

Should I make new VIPER-N ? N for notification observations .

Vibrate answered 23/5, 2017 at 12:46 Comment(0)
V
2

Guys if you are confused . Then put the observers in interactor.

p.s : don't get confused and then transfer the data received in integrator to presenter to view .

:) :)

Happy viper.

Vibrate answered 6/7, 2017 at 13:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.