






#import "LostDidViewController.h"

@interface LostDidViewController ()

@end

@implementation LostDidViewController

- (UIButton *)sentSlideButton
{
    if (!_sentSlideButton) {
        _sentSlideButton = [[UIButton alloc] init];
        [_sentSlideButton setTitle:WetDoneFill.artSensitive.anchoringModifiedDanishCardAskPlayable forState:UIControlStateNormal];
        [_sentSlideButton setTitleColor:[WetDoneFill boldFlushColor] forState:UIControlStateNormal];
        [_sentSlideButton addTarget:self action:@selector(browseConfigureRecognizeRecorderLinerAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _sentSlideButton;
}

- (UIButton *)familyStayButton
{
    if (!_familyStayButton) {
        _familyStayButton = [[UIButton alloc] init];
        [_familyStayButton setTitle:WetDoneFill.artSensitive.binExpansionAdoptResetTokenTrad forState:UIControlStateNormal];
        [_familyStayButton setTitleColor:[WetDoneFill boldFlushColor] forState:UIControlStateNormal];
        [_familyStayButton addTarget:self action:@selector(reusableIndexesLowercaseTurnTraverseAction:) forControlEvents:UIControlEventTouchUpInside];
        _familyStayButton.hidden = [WetDoneFill placeMasterMonitoredMutationsWorldJabber];
    }
    return _familyStayButton;
}

- (void)browseConfigureRecognizeRecorderLinerAction:(UIButton *)sender {
    if(self.navigationController.viewControllers.count > 1) {
        [self.view endEditing:YES];
        [self.navigationController popViewControllerAnimated:NO];
    }else {
        [self reusableIndexesLowercaseTurnTraverseAction:sender];
        [self dismissViewControllerAnimated:NO completion:nil];
    }
}

- (void)reusableIndexesLowercaseTurnTraverseAction:(UIButton *)sender {
    [[SockLevelManager shared] requireSpellWindow];
    [WetDoneFill reusableIndexesLowercaseTurnTraverseAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [WetDoneFill hexIndexDidInteriorEqualityColor];
    [self.view addSubview:self.sentSlideButton];
    [self.view addSubview:self.familyStayButton];
    
    CGFloat logSize = WetDoneFill.artSensitive.unionTrapThe;
    [_sentSlideButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(WetDoneFill.artSensitive.nativeFetch);
        make.size.mas_equalTo(CGSizeMake(logSize, logSize));
    }];
    [_familyStayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(WetDoneFill.artSensitive.nativeFetch);
        make.right.equalTo(self.view).offset(-WetDoneFill.artSensitive.nativeFetch);
        make.size.mas_equalTo(CGSizeMake(logSize, logSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(lineTouchAirSwedishGrowFeetFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bitSessionsAnyPencilCountedWon:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([WetDoneFill elderHowAddCanadianInviteWaySize]);
    }];
}


- (void)lineTouchAirSwedishGrowFeetFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect reliableFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [SockLevelManager shared].pageEightEndWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(WetDoneFill.artSensitive.printGrandsonChargeMaskThreadOverdue)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];
#pragma clang diagnostic pop
        
        if (firstResponder  && [firstResponder isKindOfClass:UITextField.class]) {

            CGRect artRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((artRect.origin.y + artRect.size.height) > reliableFrame.origin.y) {
                CGFloat welsh = ((artRect.origin.y + artRect.size.height) - reliableFrame.origin.y) + 10;
                
                bankArm(self);
                [UIView animateWithDuration:duration animations:^{
                    feetExist(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -welsh);
                }];
            }
        }
    }
}


- (void)bitSessionsAnyPencilCountedWon:(NSNotification *)notification{
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    bankArm(self);
    [UIView animateWithDuration:duration animations:^{
        feetExist(self);
        self.navigationController.view.transform = CGAffineTransformIdentity;
    }];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super touchesEnded:touches withEvent:event];
    [self.view endEditing:YES];
}

- (void)senseAnimateFarsiRebusTen:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.view endEditing:YES];
}

- (void)dealloc {
    
    [self.view endEditing:YES];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil];
}

@end
