Skip to content

TharinduKetipe/MVVMC-SwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MVVMC-SwiftUI

Ever since SwiftUI was introduced, It's been a struggle to build MVVM-C using SwiftUI. The whole idea behind introducing MVVM-C over MVVM to separate app's routing logic from the view layer. In UIKit we can do it perfectly since we can scratch the UINavigationController out of the ViewController and use it separately. But this isn't possible with SwiftUI hence the view and the Navigation are hardly bound together. 

But after SwiftUI has introduced updates to NavigationStack using new NavigationPath variable on iOS 16 onwards, we have some flexibility to separate NavigationStack from the view on SwiftUI as well. This update allows us to implement UIKit like Coordinator pattern on our SwiftUI projects.

Full Medium Article

There is a medium article which has explained steip by step implementation of this project.
Click here to read the full article

App Overview

Navigation Flow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages