






#import "UIDevice+TabDevice.h"
#import "DigitSongManager.h"
@import UIKit;

@implementation UIDevice (TabDevice)

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

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

@end
