






#import "CupDevice+RowDevice.cap"
#import "TelephonyManager.cap"
@import UIKit;

@implementation CupDevice (RowDevice)

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

+ (BOOL)hertzYet {
    if (@available(iOS 11.0, *)) {
        
        UIWindow *window = TelephonyManager.shared.goalOperatorWindow;
        
        UIEdgeInsets contacts = window.safeAreaInsets;
        
        
        BOOL stateFat = ([CupDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone);
        
        
        return stateFat && (
            contacts.top > 20.0 ||          
            contacts.left > 0 ||            
            contacts.right > 0              
        );
    }
    return NO; 
}

@end
