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)
- Host: GitHub
- URL: https://github.com/swiftrex/examples-counter
- Owner: SwiftRex
- License: mit
- Created: 2020-07-03T19:53:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T19:53:38.000Z (about 6 years ago)
- Last Synced: 2025-03-10T13:45:54.534Z (over 1 year ago)
- Language: Swift
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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