|
@@ -13,6 +13,19 @@ import UIKit
|
|
|
public let cScreenWidth: CGFloat = UIScreen.main.bounds.width
|
|
|
public let cScreenHeigth: CGFloat = UIScreen.main.bounds.height
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+public let statusBarHeight = UIApplication.shared.statusBarFrame.height;
|
|
|
+
|
|
|
+public let navigationHeight = CGFloat(statusBarHeight + 44.0)
|
|
|
+
|
|
|
+public let tabBarHeight = CGFloat(statusBarHeight > 20.0 ? 83.0 : 49.0)
|
|
|
+
|
|
|
+public let topSafeAreaHeight = CGFloat(statusBarHeight - 20.0)
|
|
|
+
|
|
|
+public let bottomSafeAreaHeight = CGFloat(tabBarHeight - 49.0)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public let cAdaptatWidth = cScreenWidth / 375
|
|
|
public let cAdaptatHeigth = cScreenHeigth / 667
|