250x250
반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- Equatable
- reetcode
- protocol
- ToDoRim
- listview
- COMMIT
- Swift
- flutter
- algorithm
- tip
- SwiftGen
- swiftlint
- IOS
- it
- designPattern
- github
- UIAccessibility
- pubspec.yaml
- keyWindow
- Widget
- OSLog
- GIT
- toyproject
- pubspec
- xcode
- enumerations
- dart
- Leetcode
- basic
- Extentsion
Archives
- Today
- Total
수니의 개발새발
[iOS/Swift] iOS13에서 statusBarFrame 경고 해결 본문
728x90
반응형
iOS13에서 status bar 사이즈를 구할 때 사용하던 statusBarFrame이 deprecated 되었습니다.

'statusBarFrame' was deprecated in iOS 13.0: Use the statusBarManager property of the window scene instead.
📌 이번 글은
iOS 13에서 statusBarFrame 경고를 해결하여 상태바 높이를 구하는 소스입니다.
static let STATUS_HEIGHT: CGFloat = UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0 // 상태바 높이
728x90
반응형
'iOS - Swift' 카테고리의 다른 글
| [iOS/Swift/Basic] 컬렉션형(Array, Dictionary, Set) (0) | 2024.01.23 |
|---|---|
| [iOS/Swift/Basic] 주석과 퀵헬프(Quick Help) (0) | 2024.01.05 |
| [iOS/Swift] iOS13에서 keyWindow 경고 해결 (0) | 2023.12.22 |
| [iOS/Swift] Keychain으로 안전하게 데이터 저장/반환/삭제하기 (pod 'SwiftKeychainWrapper') (0) | 2022.06.10 |
| [iOS/Swift] UserDefaults 반환/저장하기 (feat. 자동 로그인 여부 저장) (0) | 2022.06.09 |
Comments