func isiPhoneXScreen() -> Bool {
guard #available(iOS 11.0, *) else {
return false
}
let isX = UIApplication.shared.windows[0].safeAreaInsets.bottom > 0
print("是不是刘海屏呢--->\(isX)")
return isX
}
网友评论