[Fix] #78 - 검색 뷰 데이터 바인딩 오류 수정#79
Merged
EunHee-Jeong merged 3 commits intoTeamRecorDream:developfrom Dec 30, 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.
👻 작업한 내용
검색 뷰 데이터 바인딩 오류 수정
🎤 Fix
1. bindViewModel 호출 시점 수정
-> 기존 .editingChanged 이벤트마다 bindViewModel이 호출 되던 것을 viewDidload 시점에 한번만 되도록 수정했습니다.
2. applySnapshot 메서드 수정
-> 기존에 .non과 .exit 모두 섹션에 추가되었는데, recordCount == 0에 대해 분기처리하여 필요한 섹션만 추가했습니다.
3. CompositionalLayout 수정
-> section.orthogonalScrollingBehavior 을 .none으로 변경하여 기존에 좌우로 스크롤 되던 부분을 세로로 스크롤 되도록 수정했습니다.
4. DreamSearchTextField 내부 operator 수정
-> 아래 부분에서 filter와 distintUntilChanged()를 제거했습니다. filter로 인해 빈 스트링에 대한 검색이 되지 않았고, distinctUntilChanged로 인해 같은 스트링에 대한 연속적인 검색이 불가능했던 문제를 수정했습니다.
5. DataSource 내부에서 반복적인 subscribe 수정
-> dataSource가 적용될 때마다 반복적으로 subscribe하던 부분을 수정했습니다.
📮 관련 이슈