






#import "ReclaimScreenViewController.h"
#import "SexualSobManager.h"
#import "TwistWhoView.h"
#import "UIColor+OddColor.h"
#import "UIDevice+EggDevice.h"
#import "UIImage+BinImage.h"
#import "MetalVowelConfig.h"


@implementation ReclaimScreenViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = DidTodayWax.fusionPoolSlabTicketsAnchorCommitted ? [UIColor recordedMediaRevertingNotifiesActivityImpact:DidTodayWax.fusionPoolSlabTicketsAnchorCommitted]:UIColor.whiteColor;

    self.guaraniMenu = self.treeStretch;
    [TwistWhoView retainSub];
    

    self.yetShareOne.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.yetShareOne mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(boxBoxMethod) name:DidTodayWax.invitePencil.locationsColumnPubSimulatesClearPipe object:nil];
}

- (void)boxBoxMethod {
    [self.yetShareOne reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([DidTodayWax costDailyConductorYoungerEncryptName] && MetalVowelConfig.shared.timeTagalogDetectionKindSharpness.mostBusDust.drawProceed) {
        [TwistWhoView faxMarkup];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)netNextAboutSize {
    UIWindow *alcoholWindow = [[SexualSobManager shared] builtSeekingWindow];
    UIEdgeInsets safe = alcoholWindow.safeAreaInsets;
    CGFloat adjustedTheme = 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 globally] || [UIDevice asleep]) {//无刘海
            adjustedTheme = UIScreen.mainScreen.bounds.size.height*DidTodayWax.willStreetAppliesExpandingFailing;
        }else {
            adjustedTheme = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*DidTodayWax.willStreetAppliesExpandingFailing;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, adjustedTheme);
        
    }else { 
        if (![UIDevice globally] || [UIDevice asleep]) {//无刘海
            adjustedTheme = UIScreen.mainScreen.bounds.size.width * DidTodayWax.willStreetAppliesExpandingFailing;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                adjustedTheme = (UIScreen.mainScreen.bounds.size.width - safe.left) * DidTodayWax.willStreetAppliesExpandingFailing;
            }else {
                adjustedTheme = (UIScreen.mainScreen.bounds.size.width - safe.right) * DidTodayWax.willStreetAppliesExpandingFailing;
            }
        }
        return CGSizeMake(adjustedTheme, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)patientLettersAdvancedSentencesAdaptive {
    UIWindow *alcoholWindow = [[SexualSobManager shared] builtSeekingWindow];
    UIEdgeInsets safe = alcoholWindow.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.netNextAboutSize);
        }];
    }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.netNextAboutSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.netNextAboutSize);
            }];
        }
    }
}

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

@end
