






#import "UIDevice+KeyDevice.h"
#import "PopParserManager.h"
@import UIKit;

@implementation UIDevice (KeyDevice)

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

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

@end
