Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是一个关于最佳实践的问题。
我在我的 iOS 项目中使用 VIPER 架构。我在某些用例中使用触觉反馈。UINotificationFeedbackGenerator在 VIPER中调用的最佳位置在哪里?我相信是的View。
UINotificationFeedbackGenerator
View
你应该把它放进去presenter,为什么?
presenter
视图=> 这不是视图
交互器 => 它不涉及插入数据
实体=> 这不是模型
Router => 它不用于导航到其他页面
您可以在此处了解有关该架构的更多信息