






#import "BasqueSentenceButton.h"
#import "SheTintAuto.h"
#import "UIImage+ManImage.h"
#import "CivilFitSlashController.h"
#import "UIImage+ManImage.h"
#import "UIColor+CutColor.h"

@implementation BasqueSentenceButton

- (instancetype)initTwoDetectorViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.sceneVersionViewController = viewController;
        [self markupAltitudeOriginUnfocusedLight];
    }
    return self;
}


- (void)markupAltitudeOriginUnfocusedLight {
    
    NSArray *resultingOutletCapFloaterMutable = [HallSequencerSettingViewClient pongLeadUsabilityCombiningColored:[SobDescent class]];
    
    
    NSString *minFeetManLikeCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block SobDescent *deltaLossSplit = nil;
    [resultingOutletCapFloaterMutable enumerateObjectsUsingBlock:^(SobDescent *country, NSUInteger idx, BOOL *stop) {
        if ([country.allowCostNapCode caseInsensitiveCompare:minFeetManLikeCode] == NSOrderedSame) {
            deltaLossSplit = country;
            *stop = YES; 
        }
    }];
    self.reportingExtendingUnsignedButHeight = deltaLossSplit;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",SheTintAuto.linerIndexed.funOldTaskAge, deltaLossSplit.scriptPanCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *watchOurImage = [UIImage rainClosureAbortCollectStarName:SheTintAuto.linerIndexed.veryRoomHistoryFlowSquareSignature];
    
    
    CGSize soloistBondSize = CGSizeMake(13, 13); 
    
    
    UIImage *digestImage = [self didLawZoomDeepImage:watchOurImage writeManSize:soloistBondSize];
    
    
    UIImage *templateImage = [digestImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    [self setImage:templateImage forState:UIControlStateNormal];
    [self setImage:templateImage forState:UIControlStateHighlighted];
    
    self.tintColor = UIColor.darkGrayColor;
    
    
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    
    
    self.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft; 
    CGFloat spacing = 3.0; 
    self.imageEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, -spacing);  
    self.titleEdgeInsets = UIEdgeInsetsMake(0, -spacing, 0, spacing);   
    
    
    [self setBackgroundColor:UIColor.clearColor];
    [self setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [self setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    self.titleLabel.font = [UIFont systemFontOfSize:16];

    
    self.contentEdgeInsets = UIEdgeInsetsMake(8, 12, 8, 12); 
    
    
    [self sizeToFit];
    
    
    [self addTarget:self action:@selector(slantResizeClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)didLawZoomDeepImage:(UIImage *)image writeManSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat rotateFoot = targetSize.width / image.size.width;
    CGFloat flightsLost = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(rotateFoot, flightsLost);
    
    
    CGRect sindhiRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - sindhiRect.size.width) / 2.0,
                               (targetSize.height - sindhiRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                sindhiRect.size.width,
                                sindhiRect.size.height)];
    
    UIImage *penImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return penImage;
}


- (void)slantResizeClicked {
    ForTransmitIdiomBrushHeadLiveViewController *bed = [ForTransmitIdiomBrushHeadLiveViewController new];
    bed.leaseRestDelegate = self;
    [self.sceneVersionViewController.navigationController pushViewController:bed animated:NO];
}

- (void)sunCompanyEyeSockWeekRetRhythmCar:(SobDescent *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",SheTintAuto.linerIndexed.funOldTaskAge, country.scriptPanCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.reportingExtendingUnsignedButHeight = country;
}

- (void)dealloc {
    
}
@end
