Routing in Clean #swift (VIP) Architecture
▻https://hackernoon.com/routing-in-clean-swift-vip-architecture-dcc9a0ee9eb3?source=rss----3a814
Learn how to use the Router component properly▻https://clean-swift.com/clean-swift-ios-architecture/Please make sure that you have read Introducing Clean Swift (VIP) Architecture before proceeding with this tutorial.The Router component is responsible for passing data and handling transitions between view controllers. This is a very useful component if we utilize it properly.For the purposes of this tutorial, I have created an example project with 2 scenes called Login and Register. There would be 2 scenarios presented below.Transitioning from Login to RegisterPassing data from Login to RegisterTransitioningI will start by showing you how to transition to the next view controller. The Router component already contains example methods that we can adapt for our needs.LoginRouterWe will edit (...)
#swift-architecture #software-architecture #ios #clean-swift-architecture