






#import "UIDevice+WaxDevice.h"
#import "KeysVoiceManager.h"
@import UIKit;

@implementation UIDevice (WaxDevice)

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

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

@end
