-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] RxFlow로 코디네이터의 기본적인 구조를 설계했어요. #208
base: feature/myeongsoo/add_rxFlow
Are you sure you want to change the base?
[Core] RxFlow로 코디네이터의 기본적인 구조를 설계했어요. #208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RxFlow를 제가 아직 잘 모르는 부분이 많은 것 같아서 RxFlow를 좀 더 파고 추가로 봐서 커멘트 달께요ㅠㅠ
private let dependency: Dependency | ||
|
||
|
||
init(with dependency: Dependency) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
공유주신대로 dependency를 가져야 되는 군요ㅠ ㅎㅎ 다른 대안이 저도 떠오르지 않아서 이렇게 구성해야 할듯요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네네 Flow에서 ViewController를 보내는 형태가 되어서 생성시점에 의존성을 넘겨주려면 Flow가 프로퍼티로 들고있어야겠더라구요..
import RxSwift | ||
import RxRelay | ||
|
||
struct AppStepper: Stepper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
struct로 한 이유가 어떤거에요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
샘플로 찾아본 예제에서 struct로 설계했어서 크게 고려하지 않았었습니다.
RxFlowDemo를 보니 class로 사용하고 있네요. Stepper의 기능적인 면으로 봤을 때 클래스로 사용하는것이 바람직해보입니다!
참고
피드백 주셔서 감사합니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고 수고 하셨습니다!
RxFlow에 대한 기본 개념은 다음의 링크를 참고하셔서 역할별로만 보셔도 좋을것 같아요. 참고
수정내역 (필수)