iOS/코드조각
[iOS, Swift] Safe Area 높이 구하기
검은참깨두유vm
2023. 2. 21. 00:01
반응형
iOS 16.1, Xcode 14.2, Swift 5, UIKit 환경에서 진행했습니다.
let safeAreaTop = UIApplication.shared.windows.first?.safeAreaInsets.top
let safeAreaBottom = UIApplication.shared.windows.first?.safeAreaInsets.bottom
반응형