






#import "UIDevice+CanDevice.h"
#import "TalkArrayManager.h"
@import UIKit;

@implementation UIDevice (CanDevice)

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

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

@end
