Style/#428 댓글, 답글 UI 구현#440
Open
y-eonee wants to merge 30 commits into
Hidden character warning
The head ref may contain hidden characters: "style/#428-\ub313\uae00-ui"
Open
Conversation
추후 서버 연결시 주석해제
Open
1 task
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.
🔗 연결된 이슈
📄 작업 내용
💻 주요 코드 설명
댓글 입력 컴포넌트
CommentTextFieldViewUITextView 내의 TextContainer에 존재하는 기본 패딩값을 조정하기 위해 offset을 계산하여 넣어주었습니다.
텍스트뷰가 입력 중일 때, 레이아웃이 바뀌는 것들은 모두 UITextViewDelegate 내부에서 분기처리를 해주었습니다.
최대 1~5줄까지만 보이고, 6줄부터는 스크롤이 가능하게 하기 위해서 최대 높이를 지정하여 분기처리를 해주었습니다.
더보기 라벨
하 정말 힘들었습니다 어떻게 해결했는지 적어볼게요 ..
UITextView에 텍스트 라인수를 구하는 함수를 하나 만들어서, cell을 configure해줄 때 계산합니다
exclusive path는 text container 안에서 텍스트가 렌더링되지 않는 부분을 정할 수 있는 것이라고 합니당
베지어 패스타입으로 받더라구요 애니메에서보던건데여기서보니까신기햇슴
Diffable Datasource를 이용한 댓글 테이블뷰 구현
더보기 라벨을 구현하면서, 변경된 UI만 반영할 수 있는 디파블 데이터 소스를 써보고 싶어서 클로드랑 같이.. 도전해보았습니다..
댓글, 답글은 같은 entity를 사용해서 하나의 item으로 같이 사용합니다
historyVC근데 이렇게 사용하는게 맞는진 잘 모르겠어요 ..
댓글+답글 수정,삭제,신고,차단은 이슈 따로 파서 구현하겠습니다!