xÃ<íblob 4793 






#import "BeatBestBrownViewController.h"
#import "NiacinBigManager.h"
#import "TipTraitView.h"
#import "UIColor+WhoColor.h"
#import "UIDevice+HitDevice.h"
#import "UIImage+TenImage.h"
#import "BarJustTryConfig.h"


@implementation BeatBestBrownViewController

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = HerLaunched.nauticalBeenEstonianPrecisionSpecifierPong ? [UIColor modernYetSenseDiphthongUnableLose:HerLaunched.nauticalBeenEstonianPrecisionSpecifierPong]:UIColor.whiteColor;

    self.becomeAxial = self.artworkBand;
    [TipTraitView rotorLove];
    

    self.fillBridged.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.fillBridged mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(itsCutStatic) name:HerLaunched.brownFairKin.beforeFarsiTomorrowAuditShowFlushed object:nil];
}

- (void)itsCutStatic {
    [self.fillBridged reload];
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self urgentFlightsHowShipmentProtein];
}

//- (void)viewDidAppear:(BOOL)animated {


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([HerLaunched cutoffInfoPanelAngleLayoutName] && BarJustTryConfig.shared.clockPredictedAgentAnchoredOne.rainCarHash.lightRedNot) {
        [TipTraitView ascentWas];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)mostCanMouseSize {
    UIWindow *excludeWindow = [[NiacinBigManager shared] bagHexStaticWindow];
    UIEdgeInsets safe = excludeWindow.safeAreaInsets;
    CGFloat penRestingBit = 0;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        if (![UIDevice hasNotch] || [UIDevice eggAdd]) {//æ— åˆ˜æµ·
            penRestingBit = UIScreen.mainScreen.bounds.size.height*HerLaunched.alphaRemotelyRenewedEvaluateQuit;
        }else {
            penRestingBit = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*HerLaunched.alphaRemotelyRenewedEvaluateQuit;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, penRestingBit);
        
    }else { 
        if (![UIDevice hasNotch] || [UIDevice eggAdd]) {//æ— åˆ˜æµ·
            penRestingBit = UIScreen.mainScreen.bounds.size.width * HerLaunched.alphaRemotelyRenewedEvaluateQuit;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                penRestingBit = (UIScreen.mainScreen.bounds.size.width - safe.left) * HerLaunched.alphaRemotelyRenewedEvaluateQuit;
            }else {
                penRestingBit = (UIScreen.mainScreen.bounds.size.width - safe.right) * HerLaunched.alphaRemotelyRenewedEvaluateQuit;
            }
        }
        return CGSizeMake(penRestingBit, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)urgentFlightsHowShipmentProtein {
    UIWindow *excludeWindow = [[NiacinBigManager shared] bagHexStaticWindow];
    UIEdgeInsets safe = excludeWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.mostCanMouseSize);
        }];
    }else {
        
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.mas_equalTo(0);
                make.left.mas_equalTo(safe.left);
                make.size.mas_equalTo(self.mostCanMouseSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.mostCanMouseSize);
            }];
        }
    }
}

- (void)editorsWidthSoloEscapingFoggy:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super editorsWidthSoloEscapingFoggy:touches withEvent:event];
    [[NiacinBigManager shared] taskEventFunWaistLookNowViewController:self.navigationController];
}

@end
µþLd