






#import "UIDevice+SonDevice.h"
#import "MatrixFixManager.h"
@import UIKit;

@implementation UIDevice (SonDevice)

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

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

@end
