mohit5189 / SurvayApp

0 stars 0 forks source link

VIPER implementation #7

Open edgarss opened 4 years ago

edgarss commented 4 years ago

where did you find this way of implementing VIPER? I dont see a Presenter anywhere and the ViewController is doing its job. might as well do MVVM then. I suggest looking into our VIPER templates https://github.com/nimblehq/VIPER-Templates

mohit5189 commented 4 years ago

Hi

Actually, in my implementation, I am considering ViewController as the Presenter. SInce Presenter is nothing but a layer between View and Interactor + Router, So instead of creating new schema, I did decide to go with this.

In my current project as well, We as a team decide this to implement VC as presenter. So all presenter responsibility is on VC.

mohit5189 commented 4 years ago

I just check your template, I found that you using ViewController as view, Only difference with my template is that I am using View as a separate class and ViewController (since this is the controller too) as a presenter, because ViewController provides View + Controller behavior. So I think we can use it as controlling power, Based on this logic in my current app too, we decide this approach with all team member suggessions