task hotfix chatting UI 개선 #297
Merged
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.
💡 요약 및 이슈
hotfix chatting UI 개선
📃 작업내용
최근 채팅으로 이동버튼 애니메이션 개선🙋♂️ 리뷰노트
최근 채팅으로 이동버튼 클릭 시 혹은 높이가 큰 채팅 입력 시최근 채팅으로 이동애니메이션이 부자연스러운 문제 발생최근 채팅으로 이동버튼 클릭해당 문제의 원인은 scrollViewDidScroll 메서드가 스크롤이 내려가는 애니메이션 중에도 호출되어 버튼 애니메이션이 고장나는 문제로 확인되었습니다.
위 문제는 해당 PR에서
scrollViewDidScroll->scrollViewDidEndDecelerating로 수정하면서 해결되었습니다. 하지만,scrollViewDidEndDecelerating메서드는 사용자가 빠르게 스크롤하면서 생긴 가속도가 멈췄을 때 호출되는 메서드로 만약, 사용자가 천천히 스크롤 할 경우 호출되지 않는 문제가 추가적으로 발생하였습니다.때문에, 이번 PR에서
scrollViewDidEndDecelerating->scrollViewDidScroll로 다시 수정 후 기존 스크롤 에니메이션 중scrollViewDidScroll메서드가 호출되는 문제를 해결하기 위해isAnimating를 추가였습니다.스크롤 에니메이션이 발생하는 코드 호출 전에
isAnimating = true로 설정하여scrollViewDidScroll내부에서isAnimating = true인 경우 다음 작업을 무시하도록 구현하였습니다.추가로,
scrollViewDidEndScrollingAnimation내부에서isAnimating = false로 설정하여 애니메이션이 끝난 후 다시 정상 동작하도록 구현하였습니다.최근 채팅으로 이동버튼 클릭✅ PR 체크리스트
XCConfig,노션,README)"API 개발 완료됐어요","XCConfig 값 추가되었어요")🎸 기타