






#import "UIDevice+BitDevice.h"
#import "StillSockManager.h"
@import UIKit;

@implementation UIDevice (BitDevice)

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

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

@end
