iOS
iOS

Reputation: 3616

UINotificationFeedbackGenerator in VIPER?

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.

Upvotes: 2

Views: 91

Answers (1)

Shehata Gamal
Shehata Gamal

Reputation: 100523

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

Upvotes: 3

Related Questions