Clean-Swift / CleanStore

A sample iOS app built using the Clean Swift architecture. Clean Swift is Uncle Bob's Clean Architecture applied to iOS and Mac projects. CleanStore demonstrates Clean Swift by implementing the create order use case described by in Uncle Bob's talks.
https://clean-swift.com/clean-swift-ios-architecture/
MIT License
1.91k stars 315 forks source link

Move shipment methods down to worker and introduce presenter for it #23

Closed basememara closed 1 year ago

basememara commented 6 years ago

For the shipment method picker in create order scene, the view controller currently requests and receives from the interactor. However, this violates the uni-directional flow, am I understanding this correctly that it should be this?:

  1. View controller send the request to the interactor
  2. Interactor requests shipment methods from worker / storage
  3. Worker sends it back to the interactor
  4. Interactor sends it back to the presenter
  5. Presenter formats, localizes, etc then sends it back to view controller