Style/#356 컴포넌트 변경 수정 및 폰트시스템 리팩토링 #357
Merged
Conversation
Closed
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.
🔗 연결된 이슈
📄 작업 내용
💻 주요 코드 설명
폰트 시스템 리팩토링
사실.. 37기 합세 하면서 알게된건데 .. ^^ 제가 lineheight, kern을 선언만 해놓고 막상 UI에 반영을 안하고 있다는 것을 알게되었습니다 ............ 이번에 lineheight 변경되어서 겸사겸사 리팩토링을 했습니다 ..
!!!!! 폰트 적용 방법이 변경되었습니다 !!!!!!
기존
변경
button과 TextView에도 동일하게 적용됩니다. 대신 button과 TextView는 style, text, color만 작성합니다.
UILabel, UIButton, UITextView에 applyByeBooFont 라는 익스텐션을 추가하여 사용합니다.
이 익스텐션에서 NSMutableParagraphStyle, NSAttributedString으로 텍스트 관련 UI를 설정합니다.
앗 그리고 한줄짜리 라벨은 updateUI 해도 괜찮은데, 여러줄 짜리 라벨은 applyByeBooFont로 다시 updateUI에서 부르지 않고 그냥 text만 바꾸면 줄바꿈이 적용되지 않더라구요 ㅜㅜ 변경사항에 이 부분도 있습니다
한번 돌면서 텍스트 관련은 꼼꼼히 보긴했는데 먼가 이상한 부분이 있을 수 있어요.. 타이포 관련 QA 나오면 제가 해결하겠습니다 ㅠ ㅠ