As a beginner, I used to perform segues in ViewControllers
. Moreover, Apple encourages such approach, because UIViewController
has methods performSegue
and prepareForSegue
.
But learning VIPER, I read that Router
is responsible for transitions between scenes. And the second thing is that according to VIPER flowcharts like this: VIPER flowchart, Router
mustn't be tied with View
.
I absolutely don't want to refuse from using segues
, because it is extremely powerful and allows me to easily transfer data between ViewControllers
.
So, how should I perform transitions between ViewControllers
?
Aucun commentaire:
Enregistrer un commentaire