아이폰 X, XS, XS MAX, XR 대응 코드
https://stackoverflow.com/questions/46192280/detect-if-the-device-is-iphone-x You shall perform different detections of iPhone X depending on the actual need.for dealing with the top notch (statusbar, navbar), etc.class var hasTopNotch: Bool { if #available(iOS 11.0, tvOS 11.0, *) { // with notch: 44.0 on iPhone X, XS, XS Max, XR. // without notch: 20.0 on iPhone 8 on iOS 12+. return UIApplicati..
2018.10.11