I'm using VIPER pattern into my Swift app. I need a function that is executed in a lot of controllers to open an cardViewStyle. I don't know where is the better place to add this function...
Could be a useCase? An Interactor?, common... Without forgot VIPER and clean architecture
Now the function is into view controller, into presenter and wireframe... because is called only one time.
The function would be like:
//Presenter
func showLikeCard(controller: UIViewController){
wireframe.showLikeCard(controller: controller)
}
//Wireframe
func showLikeCard(controller: UIViewController){
controller.present()
}
Thanks!
Aucun commentaire:
Enregistrer un commentaire