RxCleanSwift icon indicating copy to clipboard operation
RxCleanSwift copied to clipboard

Clean Swift 연구일지 #3

Open GeekTree0101 opened this issue 5 years ago • 0 comments

DataStore는 어디에?

옆동네 중국에서의 Clean Swift사례를 읽어보았습니다. iOS体验VIP架构(https://www.jianshu.com/p/316da48ebb8a)

Raymond’s Clean Swift와 마찬가지로 Interactor에서 DataStore와 각종 Workers를 소유합니다.

Describes storing and accessing data & limited only by the getter method to show the Router

워커에 대해서 명백하게 정리하자면 다음과 같습니다.

To avoid unnecessarily complicating Interactor and duplicating business logic details

흠... 결론적으로 정리하자면 Router를 통해 DataPassing하기 위해서 DataStore가 필요하고 그것을 Worker가 들고있는 것이아니라 Interactor에서 들고 있고 Worker가 해야될 일은 확실히 정해주자는 느낌이 강했다.

GeekTree0101 avatar May 07 '19 07:05 GeekTree0101