일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- reactorkit
- SnapKit
- visionOS
- 프로그래머스
- Flutter
- BOJ
- Xcode
- arkit
- Kuring
- RxSwift
- CollectionView
- 백준
- realm
- BFS
- Lv2
- 패스트캠퍼스
- Swfit
- swift
- MVVM
- ios
- XCTest
- rxcocoa
- combine
- TCA
- tableView
- designpattern
- node.js
- raywenderlich
- UIKit
- SwiftUI
Archives
- Today
- Total
목록paddingLabel (1)
lgvv98
[UIKit] UILabel Inset
UILabel Inset UILabel의 text와 근간이 되는 label의 고유 view가 가지는 것 사이에 여유공간을 주기 위한 코드 InsetLabel /// UILabel의 text와 컨테이너 사이의 inset값을 설정할 수 있는 커스텀 라벨 final class InsetLabel: UILabel { /// text와 UILabel 사이의 inset값을 설정 var edgeInsets: UIEdgeInsets = .init(top: 2.0, left: 8.0, bottom: 2.0, right: 8.0) override func drawText(in rect: CGRect) { super.drawText(in: rect.inset(by: edgeInsets)) } override var int..
apple/📚 Apple Docs & iOS & Swift
2023. 6. 23. 16:20