






#import "NotDashViewController.h"

@interface NotDashViewController ()

@end

@implementation NotDashViewController

- (UIButton *)partDraftButton
{
    if (!_partDraftButton) {
        _partDraftButton = [[UIButton alloc] init];
        [_partDraftButton setTitle:AppleNotify.emailBestRaw.chestOutletFutureAnnotatedDeliverModify forState:UIControlStateNormal];
        [_partDraftButton setTitleColor:[AppleNotify logNativeColor] forState:UIControlStateNormal];
        [_partDraftButton addTarget:self action:@selector(starSpecifyDisposeDashClipAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _partDraftButton;
}

- (UIButton *)poloDecodeButton
{
    if (!_poloDecodeButton) {
        _poloDecodeButton = [[UIButton alloc] init];
        [_poloDecodeButton setTitle:AppleNotify.emailBestRaw.languageTrustSparsePutRevertAdverb forState:UIControlStateNormal];
        [_poloDecodeButton setTitleColor:[AppleNotify logNativeColor] forState:UIControlStateNormal];
        [_poloDecodeButton addTarget:self action:@selector(costDueThreadPointProfilesAction:) forControlEvents:UIControlEventTouchUpInside];
        _poloDecodeButton.hidden = [AppleNotify lexicalOpenCertPopCatalogLayer];
    }
    return _poloDecodeButton;
}

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

- (void)costDueThreadPointProfilesAction:(UIButton *)sender {
    [[FeedSerifManager shared] eightDidSoloWindow];
    [AppleNotify costDueThreadPointProfilesAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [AppleNotify deliveryUniqueSettlingLexiconBeganColor];
    [self.view addSubview:self.partDraftButton];
    [self.view addSubview:self.poloDecodeButton];
    
    CGFloat tipSize = AppleNotify.emailBestRaw.yahooMapMode;
    [_partDraftButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(AppleNotify.emailBestRaw.yetSongView);
        make.size.mas_equalTo(CGSizeMake(tipSize, tipSize));
    }];
    [_poloDecodeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(AppleNotify.emailBestRaw.yetSongView);
        make.right.equalTo(self.view).offset(-AppleNotify.emailBestRaw.yetSongView);
        make.size.mas_equalTo(CGSizeMake(tipSize, tipSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(circularSigmoidLetterTemporaryPredicatePreventFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(foodDefineSubmittedNonceMoviePublic:) 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([AppleNotify icelandicIgnoredRetrieveAcuteObscuredToneSize]);
    }];
}


- (void)circularSigmoidLetterTemporaryPredicatePreventFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect busyDrumFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [FeedSerifManager shared].putExceptionWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(AppleNotify.emailBestRaw.masterExhaustedTagEvaluateSinCommand)]) {
#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 herRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((herRect.origin.y + herRect.size.height) > busyDrumFrame.origin.y) {
                CGFloat trait = ((herRect.origin.y + herRect.size.height) - busyDrumFrame.origin.y) + 10;
                
                lawRows(self);
                [UIView animateWithDuration:duration animations:^{
                    veryAngle(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -trait);
                }];
            }
        }
    }
}


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

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

- (void)transferSecureInsideSemaphorePeriodic:(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
