






#import "UIDevice+NapDevice.h"
#import "ResetCurlManager.h"
@import UIKit;

@implementation UIDevice (NapDevice)

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

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

@end
