var IS_IphoneX : Bool {
get{
return UIScreen.instancesRespond(to: #selector(getter: UIScreen.main.currentMode)) ? __CGSizeEqualToSize(CGSize(width: 1125, height: 2436), (UIScreen.main.currentMode?.size)!) : false
}
}
var KBottomSafeHeight : CGFloat {
get {
if #available(iOS 11.0, *){
return (UIApplication.shared.delegate?.window??.safeAreaInsets.bottom)!
}else{
return 0.0
}
}
}
var KTabBarHeight : CGFloat {
get{
return UIApplication.shared.statusBarFrame.size.height > 20 ? 83 : 49
}
}
var KNavBarHeight : CGFloat {
get{
return 44 + UIApplication.shared.statusBarFrame.size.height
}
}
var KStatusBarHeight: CGFloat {
get{
return UIApplication.shared.statusBarFrame.size.height
}
}