






#import "UIDevice+WhoDevice.h"
#import "CombiningManager.h"
@import UIKit;

@implementation UIDevice (WhoDevice)

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

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

@end
