UINotificationFeedbackGenerator in VIPER?

88 views Asked by At

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.

1

There are 1 answers

0
Shehata Gamal On BEST ANSWER

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