Home > Software design >  UINotificationFeedbackGenerator in VIPER?
UINotificationFeedbackGenerator in VIPER?

Time:02-14

This is a kind of question regarding best practice.

I am using VIPER architecture in my iOS project. I use haptic feedback for some use cases. Where would be the best place to invoke UINotificationFeedbackGenerator in VIPER? I believe it is View.

CodePudding user response:

You should place it in presenter , why ?

View => It's not a view

Interactor => It doesn't involve intercalation with data

Entity => It's not a model

Router => It's not used to navigate to other pages

you can learn more about that architecture Here

  • Related