Setup router
This MR currently supports only the SwiftUI template. I will focus for UIKit and adding new routers in the following merge request.
Main differences in a template from older approach
- Adding
loading
anderror
handling into a template. - fix memory leaks
- Checking if the modal is dismissed directly in
Coordinator.
This approach allows to have just one template forModal
andNavigation.
Also, changingRouter
does not create memory leaks.
Edited by Thanh Do Long