






#import "IcyFootFireViewController.h"
#import "SDWebImageManager.h"
#import "IllToast.h"
#import "NSString+AffineDog.h"

@interface IcyFootFireViewController ()

@property (nonatomic, strong) UIImageView *snowHighMayImageView;
@property (nonatomic, strong) UITextField *waistHintTextField;
@property (nonatomic, strong) UITextField *pastLeftTooTextField;

@end

@implementation IcyFootFireViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.rowProjectButton.hidden = [self.manyLeadOur[0] boolValue];
    
    CGFloat combinedMoreGenericBorderedLarge = RedFlexible.capContinued.languageHalf;
    
    UILabel *twoLabel = [RedFlexible assignSlavicOpenGlobalPopover:RedFlexible.daySentFaxWill.waxSwitchAddressesEstimatedHer];
    twoLabel.numberOfLines = 0;
    [self.view addSubview:twoLabel];
    [twoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RedFlexible.capContinued.sparseYouNap);
        make.left.mas_equalTo(RedFlexible.capContinued.alarmNetLoud);
        make.right.mas_equalTo(-RedFlexible.capContinued.alarmNetLoud);
    }];
    
    
    self.waistHintTextField = [RedFlexible socialBloodField:RedFlexible.daySentFaxWill.caretSampleCalorieGreatBigButterfly isSecure:NO];
    [self.view addSubview:self.waistHintTextField];
    [self.waistHintTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(twoLabel.mas_bottom).offset(combinedMoreGenericBorderedLarge);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.right.mas_equalTo(-RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    
    
    self.pastLeftTooTextField = [RedFlexible socialBloodField:RedFlexible.daySentFaxWill.kilovoltsDarkTaggingInsideFontMiter isSecure:NO];;
    [self.view addSubview:self.pastLeftTooTextField];
    [self.pastLeftTooTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.waistHintTextField.mas_bottom).offset(combinedMoreGenericBorderedLarge);
        make.left.right.equalTo(self.waistHintTextField);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    
    
    UIImageView *andHisImageView = nil;
    if ([self.manyLeadOur[1] length] > 0) {
        
        andHisImageView = [[UIImageView alloc] init];
        andHisImageView.backgroundColor = UIColor.lightGrayColor;
        andHisImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:andHisImageView];
        [andHisImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.pastLeftTooTextField.mas_bottom).offset(combinedMoreGenericBorderedLarge);
            make.width.mas_equalTo(self.pastLeftTooTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.snowHighMayImageView = andHisImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.manyLeadOur[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(), ^{
                andHisImageView.image = image2;
                CGFloat hover = image2.size.height / image2.size.width;
                [andHisImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((RedFlexible.capContinued.disappearBrowseSinhaleseUnfocusedVolumeWidth -RedFlexible.capContinued.gallonAmpere*2)*hover);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.snowHighMayImageView ? self.snowHighMayImageView.frame.size.height + RedFlexible.capContinued.languageHalf +RedFlexible.capContinued.bypassArgumentsInvertClampedIncreaseYounger : RedFlexible.capContinued.bypassArgumentsInvertClampedIncreaseYounger;
                    
                    make.size.mas_equalTo(CGSizeMake(RedFlexible.capContinued.disappearBrowseSinhaleseUnfocusedVolumeWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.snowHighMayImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.snowHighMayImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *speedExecButton = [RedFlexible authorNumeralPivotRecipientPluralColor:RedFlexible.daySentFaxWill.transitNextNotifyTargetedAborted];
    [speedExecButton addTarget:self action:@selector(serifSpanTeluguRevertCenteredImmutable:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:speedExecButton];
    [speedExecButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-RedFlexible.capContinued.preferredWho);
        make.left.right.equalTo(self.waistHintTextField);
        make.height.mas_equalTo(RedFlexible.capContinued.duplexCorner);
    }];
    
}

- (void)serifSpanTeluguRevertCenteredImmutable:(id)sender {

}

@end
