I am using Clean Architecture in Swift. I am doubtful about routing in it.
Consider this scenario: A screen needs to be pushed when a button is pressed in ViewController
Now there may be two cases:
- We need to pass some data to another Controller:
- In this case, we will call interactor-> presenter -> viewcontroller->router->push.
- We don't need to pass any data to another Controller, instead of going through the whole cycle:
- Can we directly call the router method from the view controller? Will this break the Clean Architecture?