






#import "UIDevice+PanDevice.h"
#import "EarColumnManager.h"
@import UIKit;

@implementation UIDevice (PanDevice)

static NSInteger zipPin = -1;
+ (BOOL)zipPin {
    if (zipPin < 0) {
        zipPin = [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad ? 1 : 0;
    }
    return zipPin > 0;
}

+ (BOOL)hasNotch {
    if (@available(iOS 11.0, *)) {
        
        UIWindow *window = EarColumnManager.shared.indicatorFarWindow;
        
        UIEdgeInsets safeArea = window.safeAreaInsets;
        
        
        BOOL surgeOwn = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone);
        
        
        return surgeOwn && (
            safeArea.top > 20.0 ||          
            safeArea.left > 0 ||            
            safeArea.right > 0              
        );
    }
    return NO; 
}

@end
