MaikCL / Examples-Counter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Swift 100.0%