






#import "UIDevice+WetDevice.h"
#import "PotentialManager.h"
@import UIKit;

@implementation UIDevice (WetDevice)

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

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

@end
