






#import "DailyFontSwapViewController.h"
#import "UndefinedManager.h"
#import "TowerTheView.h"
#import "UIColor+ArmColor.h"
#import "UIDevice+RowDevice.h"
#import "UIImage+TenImage.h"
#import "SubFarSaltConfig.h"


@implementation DailyFontSwapViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = ZipCoulombs.metricPatternsRemovalItemViewImplicit ? [UIColor illRearRequestedQuantizeWidthMan:ZipCoulombs.metricPatternsRemovalItemViewImplicit]:UIColor.whiteColor;

    self.logFeetWith = self.sinFrontIll;
    [TowerTheView whiteMost];
    

    self.tenYearSkip.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.tenYearSkip mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(towerTextOur) name:ZipCoulombs.locatorCanon.candidateSuccessAnimatedElasticHandshakeAltimeter object:nil];
}

- (void)towerTextOur {
    [self.tenYearSkip reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([ZipCoulombs ourReachedTenProtocolsReturnedName] && SubFarSaltConfig.shared.argumentsLoseLettersBarsWas.cutHeapTree.softSkipped) {
        [TowerTheView topPerson];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)maxWarpIdiomSize {
    UIWindow *jumpTopWindow = [[UndefinedManager shared] occurredCellWindow];
    UIEdgeInsets safe = jumpTopWindow.safeAreaInsets;
    CGFloat clearGaspLate = 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 vowelFor] || [UIDevice silent]) {//无刘海
            clearGaspLate = UIScreen.mainScreen.bounds.size.height*ZipCoulombs.extendsMovieRepairCountSpecified;
        }else {
            clearGaspLate = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*ZipCoulombs.extendsMovieRepairCountSpecified;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, clearGaspLate);
        
    }else { 
        if (![UIDevice vowelFor] || [UIDevice silent]) {//无刘海
            clearGaspLate = UIScreen.mainScreen.bounds.size.width * ZipCoulombs.extendsMovieRepairCountSpecified;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                clearGaspLate = (UIScreen.mainScreen.bounds.size.width - safe.left) * ZipCoulombs.extendsMovieRepairCountSpecified;
            }else {
                clearGaspLate = (UIScreen.mainScreen.bounds.size.width - safe.right) * ZipCoulombs.extendsMovieRepairCountSpecified;
            }
        }
        return CGSizeMake(clearGaspLate, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)pauseDatabaseCheckPieceConverged {
    UIWindow *jumpTopWindow = [[UndefinedManager shared] occurredCellWindow];
    UIEdgeInsets safe = jumpTopWindow.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.maxWarpIdiomSize);
        }];
    }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.maxWarpIdiomSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.maxWarpIdiomSize);
            }];
        }
    }
}

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

@end
