[Feat] #31 - 작성하기 뷰 비즈니스 로직 및 데이터 바인딩#32
Merged
L-j-h-c merged 13 commits intoTeamRecorDream:developfrom Nov 1, 2022
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👻 작업한 내용
작성하기 뷰 비즈니스 로직 및 데이터 바인딩
🎤 PR Point
1. 비즈니스 로직
2. VC - VM 바인딩
VC의 각 셀에 있는 ControlEvent들을 PuslishSubject를 통해 중개해서 VM에 바인딩했습니다.
추후에 cellViewModel을 사용하는 쪽으로 개선하려고 합니다.
3. DiffableDataSource의 모델 구현
DreamWriteEntity와 DreamWriteRequest 모델을 만들었고, DiffableDataSource에 적용할 때에는 Entity를 사용합니다.
두 모델 간에 서로 전환이 가능하도록
toRequest메서드를 구현했습니다.4. Repository
현재 수정하기 뷰의 경우 Repository에서 바로 샘플 데이터를 가져오도록 구현했습니다.
추후 API 명세서가 구체적으로 나오면 세부적인 기능 구현하겠습니다.
✅ 미완인 부분
📸 영상
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2022-10-27.at.21.22.22.mp4
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2022-10-27.at.21.23.06.mp4
📮 관련 이슈