Skip to content
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

[IDLE-180] 센터프로필 조회및 수정 #20

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

J0onYEong
Copy link
Contributor

@J0onYEong J0onYEong commented Jul 19, 2024

변경된점

  • 센터장 프로필 열람및 수정 화면 추가
  • ViewModel - View간 Drvier도입

Simulator Screen Recording - iPhone 15 Pro - 2024-07-19 at 09 22 10

ViewModel의 Output 프로퍼티의 타입을 Driver로 사용하여 Output에 대한 ViewModel - View간 통신을 단방향 통식으로 설정하였습니다.

궁금한점

Input 옵저버블로 전달받는 데이터를 서버로 전송하는 버튼이 있을 때 해당 구현을 하는 패턴이 궁금합니다.
이번 구현에서는 센터로부터 3가지 입력을 가져옵니다. (센터 전화번호, 센터소개, 센터 사진)
그리고 '저장' 버튼이 눌렸을 때, 입력받던 데이터들을 서버로 전송하기 위해 BehaviorRelay를 사용하였습니다.
스크린샷 2024-07-19 오전 9 27 05

버튼이 눌리는 경우 위 사진의 프로퍼티들로 부터 value프로퍼티를 호출하고 해당 값을 서버로 전송합니다.
더 나은 방식이 있는지 궁금합니다!

@J0onYEong J0onYEong requested a review from monibu1548 July 19, 2024 00:31
@J0onYEong J0onYEong merged commit 975bf19 into develop Jul 19, 2024
1 check passed
@J0onYEong J0onYEong deleted the feature/center_profile branch July 19, 2024 02:22
Copy link
Collaborator

@monibu1548 monibu1548 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input, ouput에 대한 내용은 재혁님과 같이 이야기해보면 좋을 것 같습니다.

@J0onYEong
Copy link
Contributor Author

@monibu1548 넵~! 센터오시는날 찾아뵈도 될까요? 온라인도 좋습니다!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants