karamage / swiftui-with-mvvm-to-tca-counter

Sample code for SwiftUI to migrate from MVVM to 「The Composable Architecture(TCA)」

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swiftui-with-mvvm-to-tca-counter

Example code for SwiftUI to migrate from MVVM to 「The Composable Architecture(TCA)」

Summary

This is a comparison code for SwiftUI, using MVVM and 「The Composable Architecture(TCA)」.

In the era of declarative UI, a composable (parts can be assembled) architecture is required.

In other words, if the architecture is "easy to make UI components" and "easy to combine those components," the benefits of declarative UI can be maximized.

TCA, as the name suggests, is a "Composable" architecture.

MVVM, however, is not a composable architecture.

This sample code illustrates this.

Dependencies

swift-composable-architecture https://github.com/pointfreeco/swift-composable-architecture

About

Sample code for SwiftUI to migrate from MVVM to 「The Composable Architecture(TCA)」


Languages

Language:Swift 100.0%