An open API service indexing awesome lists of open source software.

https://github.com/swiftrex/examples-counter

Simple Counter examples for SwiftRex (SwiftUI+Combine and UIKit+RxSwift)
https://github.com/swiftrex/examples-counter

Last synced: 4 months ago
JSON representation

Simple Counter examples for SwiftRex (SwiftUI+Combine and UIKit+RxSwift)

Awesome Lists containing this project

README

          

# SwiftRex Counter Examples

In this repository:

- **Counter.xcworkspace**: Main workspace containing both projects.
- **Counter.UIKit**: UIKit example using RxSwift (RxSwiftRex)
- **Counter.SwiftUI**: SwiftUI example using Combine (CombineRex)

Both examples share:
- Dependency injection (World.swift)
- Log logic (LoggerMiddleware.swift)
- AppState, AppAction, Reducers and Middlewares (AppModule.swift)
- Counter View Model (CounterViewModel.swift)

The exclusive code:
- Store class (Store.swift)
- SwiftUI View / UIViewController + Storyboard