






#import "MembersViewController.h"

@interface MembersViewController ()

@end

@implementation MembersViewController

- (UIButton *)modelBoldButton
{
    if (!_modelBoldButton) {
        _modelBoldButton = [[UIButton alloc] init];
        [_modelBoldButton setTitle:SafeTradEar.smallestMany.penLoadingDanishRetCompanyLegacy forState:UIControlStateNormal];
        [_modelBoldButton setTitleColor:[SafeTradEar downAllowColor] forState:UIControlStateNormal];
        [_modelBoldButton addTarget:self action:@selector(manRoleEarDogSymbolicAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _modelBoldButton;
}

- (UIButton *)drawingMidButton
{
    if (!_drawingMidButton) {
        _drawingMidButton = [[UIButton alloc] init];
        [_drawingMidButton setTitle:SafeTradEar.smallestMany.centralLengthsUighurOfficialPutModified forState:UIControlStateNormal];
        [_drawingMidButton setTitleColor:[SafeTradEar downAllowColor] forState:UIControlStateNormal];
        [_drawingMidButton addTarget:self action:@selector(civilProvinceBeaconExtendingDanishAction:) forControlEvents:UIControlEventTouchUpInside];
        _drawingMidButton.hidden = [SafeTradEar listenersInsertingDogAffiliateEqualArchery];
    }
    return _drawingMidButton;
}

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

- (void)civilProvinceBeaconExtendingDanishAction:(UIButton *)sender {
    [[EnergySixManager shared] thumbUsesLowWindow];
    [SafeTradEar civilProvinceBeaconExtendingDanishAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [SafeTradEar linerLengthsRotateHeapEditorialColor];
    [self.view addSubview:self.modelBoldButton];
    [self.view addSubview:self.drawingMidButton];
    
    CGFloat wonSize = SafeTradEar.smallestMany.failureEvent;
    [_modelBoldButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(SafeTradEar.smallestMany.tensionBody);
        make.size.mas_equalTo(CGSizeMake(wonSize, wonSize));
    }];
    [_drawingMidButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(SafeTradEar.smallestMany.tensionBody);
        make.right.equalTo(self.view).offset(-SafeTradEar.smallestMany.tensionBody);
        make.size.mas_equalTo(CGSizeMake(wonSize, wonSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(eastLearnPerfusionResponderDecreaseConverterFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(elevatedAdaptiveNapHomepageDownOxygen:) 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([SafeTradEar strokingPashtoInferIllDescenderFiberSize]);
    }];
}


- (void)eastLearnPerfusionResponderDecreaseConverterFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect icyThumbFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [EnergySixManager shared].pivotTailRawWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(SafeTradEar.smallestMany.safeOutsideCharResourceBoyfriendQuiet)]) {
#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 binRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((binRect.origin.y + binRect.size.height) > icyThumbFrame.origin.y) {
                CGFloat coast = ((binRect.origin.y + binRect.size.height) - icyThumbFrame.origin.y) + 10;
                
                allDeny(self);
                [UIView animateWithDuration:duration animations:^{
                    incorrect(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -coast);
                }];
            }
        }
    }
}


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

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

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