일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- fullscreencover
- swift
- Concurrency
- Animation
- 네트워크
- UIKit
- environmentobjet
- CS
- GCD
- Network
- combine
- arkit
- Performance
- auth
- 달력
- SwiftUI
- ios
- gesture
- authentication
- firebase
- realitykit
- dataflow
- state
- ar
- iphone
- withAnimation
- stateobject
- 데이터최적화
- WWDC
- RxSwift
Archives
- Today
- Total
XLOG
[UIKit] iOS15 이상 UITableView Section Header Padding 적용 본문
iOS 15 부터 UITableView 섹션 헤더에 기본 패딩이 적용되어 있다.
섹션 헤더 패딩값을 제로로 만들기
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
if #available(iOS 15.0, *) {
UITableView.appearance().sectionHeaderTopPadding = .zero
}
return true
}