






#import "UIDevice+CutDevice.h"
#import "OutDemandManager.h"
@import UIKit;

@implementation UIDevice (CutDevice)

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

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

@end
