1
This commit is contained in:
@@ -100,10 +100,8 @@ static inline UIWindow *KB_KeyWindow(void) {
|
||||
|
||||
// Safe Area
|
||||
static inline UIEdgeInsets KB_SafeAreaInsets(void) {
|
||||
if (@available(iOS 11.0, *)) {
|
||||
UIWindow *w = KB_KeyWindow();
|
||||
return w ? w.safeAreaInsets : UIEdgeInsetsZero;
|
||||
}
|
||||
return UIEdgeInsetsZero;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user