






#import "UIDevice+ArtDevice.h"
#import "DryPortalManager.h"
@import UIKit;

@implementation UIDevice (ArtDevice)

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

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

@end
