[refactor] #143 - HomeViewController 리팩토링 및 Mock 구축#144
Open
gleamminn wants to merge 11 commits into
Open
Conversation
4 tasks
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.
🌴 작업한 브랜치
✅ 작업한 내용
1) 구조체 이름 변경
기존 모호했던 구조체 이름을 변경했습니다.
ex GoodsItem -> GoodsEntity2) Mock 구축
서버 없이도 뷰를 테스트할 수 있도록
MockHomeRepository를 구현했습니다.AppDIContainer에 Mock을 주입해 테스트할 수 있습니다.3) Banner Section 수정
Home 화면 상단 배너 섹션 부분을 일괄 수정했습니다.
피그마와 동일하게 스크롤 되도록 UI를 수정했고 자연스러운 UI를 위해 구조를 전체적으로 수정했습니다.
이전에는 셀 푸터에 페이지 인디케이터를 등록했지만 이를 삭제하고 캐러셀 뷰에 인디케이터를 배치했습니다.
또한 이전에는 배너백그라운드뷰를 통해 이미지 배경 레이어를 구현했지만 이를 삭제하고 BannerCarouselView 안에 이미지와 이미지 배경 뷰를 모두 구현했습니다.
4) CompositionalLayout, ViewController, View 리팩토링
수정된 Banner에 맞게 세 개의 파일을 리팩토링 하였고 필요없는 수신자를 삭제했습니다.
📷 Screenshots
💬 To Reviewers
스프린트 아자스