






#import "UIDevice+ItsDevice.h"
#import "FiberRaceManager.h"
@import UIKit;

@implementation UIDevice (ItsDevice)

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

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

@end
