
이렇게 디자이너가 -3%의 수치로 자간을 줬을때, code로 UILabel의 자간을 수정하는 방법입니다. 디자이너입장에서 이런 디테일을 아주 중요시 하기때문에 개발자의 눈에는 별 차이가 없더라도 그냥 넘어갈 수 없습니다~ self.font.pointSize 로 UILabel마다 다른 font 사이즈에 접근해줄 수 있어요. (default는 -3%) extension UILabel { func addCharacterSpacing(_ value: Double = -0.03) { let kernValue = self.font.pointSize * CGFloat(value) guard let text = text, !text.isEmpty else { return } let string = NSMutableAt..
iOS & swift
2022. 8. 16. 19:39
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- swift 자간
- swift get excel
- filemanager excel read
- swift urlsession module
- swift network 공통화
- 레디세이 어플
- swift queryitem encode
- chatgpt rag llm
- llm csv
- readysay
- rag 기반 llm 챗봇
- 레디세이
- swift excel read
- rag llm pdf
- swift urlcomponent encode
- rag 기반 llm
- swift urlsession refactoring
- swift urlsession 공통화
- swift filemanager get excel
- swift 엑셀 읽기
- swift network module
- swift 네트워크 모듈화
- swift filemanager excel
- 공부 타이머 어플
- swift urlsession network module
- swift network refactoring
- focus timer 어플
- swift 엑셀 가져오기
- 엔디소프트 레이세이
- llm pdf rag
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함