//判断是不是刘海屏
funcisiPhoneXScreen() -> Bool {
guard#available(iOS11.0, *) else {
returnfalse
}
let isX = UIApplication.shared.windows[0].safeAreaInsets.bottom > 0
print("是不是--->(isX)")
return isX