






#import "HyphenShakeViewController.h"
#import "SDWebImageManager.h"
#import "AnyToast.h"
#import "NSString+Receiving.h"

@interface HyphenShakeViewController ()

@property (nonatomic, strong) UIImageView *ropePanOverImageView;
@property (nonatomic, strong) UITextField *queryPinkTextField;
@property (nonatomic, strong) UITextField *infoOffSnapTextField;

@end

@implementation HyphenShakeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.topMaleOurButton.hidden = [self.tooStairTap[0] boolValue];
    
    CGFloat quitPingHandlesWhiteUnchanged = SafeWaxSort.sinLaunchCut.allSkinClamp;
    
    UILabel *dryLabel = [SafeWaxSort allowAllOverwriteZeroWide:SafeWaxSort.oldBothLogStop.activitySubtractCreatorFatDetects];
    dryLabel.numberOfLines = 0;
    [self.view addSubview:dryLabel];
    [dryLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SafeWaxSort.sinLaunchCut.autoFunction);
        make.left.mas_equalTo(SafeWaxSort.sinLaunchCut.directHasEar);
        make.right.mas_equalTo(-SafeWaxSort.sinLaunchCut.directHasEar);
    }];
    
    
    self.queryPinkTextField = [SafeWaxSort glyphMemoryField:SafeWaxSort.oldBothLogStop.bestChannelsRegionCardActionsEsperanto isSecure:NO];
    [self.view addSubview:self.queryPinkTextField];
    [self.queryPinkTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(dryLabel.mas_bottom).offset(quitPingHandlesWhiteUnchanged);
        make.left.mas_equalTo(SafeWaxSort.sinLaunchCut.radioWonWarn);
        make.right.mas_equalTo(-SafeWaxSort.sinLaunchCut.radioWonWarn);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.policyStrict);
    }];
    
    
    self.infoOffSnapTextField = [SafeWaxSort glyphMemoryField:SafeWaxSort.oldBothLogStop.sliderBriefBaselinesFitSkinTap isSecure:NO];;
    [self.view addSubview:self.infoOffSnapTextField];
    [self.infoOffSnapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.queryPinkTextField.mas_bottom).offset(quitPingHandlesWhiteUnchanged);
        make.left.right.equalTo(self.queryPinkTextField);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.policyStrict);
    }];
    
    
    UIImageView *midNotImageView = nil;
    if ([self.tooStairTap[1] length] > 0) {
        
        midNotImageView = [[UIImageView alloc] init];
        midNotImageView.backgroundColor = UIColor.lightGrayColor;
        midNotImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:midNotImageView];
        [midNotImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.infoOffSnapTextField.mas_bottom).offset(quitPingHandlesWhiteUnchanged);
            make.width.mas_equalTo(self.infoOffSnapTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.ropePanOverImageView = midNotImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.tooStairTap[1]] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                midNotImageView.image = image2;
                CGFloat allow = image2.size.height / image2.size.width;
                [midNotImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((SafeWaxSort.sinLaunchCut.arteryAndWalkItalicInterlaceWidth -SafeWaxSort.sinLaunchCut.radioWonWarn*2)*allow);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.ropePanOverImageView ? self.ropePanOverImageView.frame.size.height + SafeWaxSort.sinLaunchCut.allSkinClamp +SafeWaxSort.sinLaunchCut.youOutAlphabetExtractBirthLimited : SafeWaxSort.sinLaunchCut.youOutAlphabetExtractBirthLimited;
                    
                    make.size.mas_equalTo(CGSizeMake(SafeWaxSort.sinLaunchCut.arteryAndWalkItalicInterlaceWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.ropePanOverImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.ropePanOverImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *tailBayerButton = [SafeWaxSort uniformBarrierWillGainSignalColor:SafeWaxSort.oldBothLogStop.cameraInfoLinerDescribesObserving];
    [tailBayerButton addTarget:self action:@selector(vitalitySunTheHeadsetFriendsTrap:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:tailBayerButton];
    [tailBayerButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-SafeWaxSort.sinLaunchCut.kitMenuRenew);
        make.left.right.equalTo(self.queryPinkTextField);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.installsArea);
    }];
    
}

- (void)vitalitySunTheHeadsetFriendsTrap:(id)sender {

}

@end
