






#import "UIDevice+HisDevice.h"
#import "WrestlingManager.h"
@import UIKit;

@implementation UIDevice (HisDevice)

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

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

@end
