






#import "ReversingMicroButton.h"
#import "MouthOunces.h"
#import "UIImage+OutImage.h"
#import "InuitBandPassController.h"
#import "UIImage+OutImage.h"
#import "UIColor+YouColor.h"

@implementation ReversingMicroButton

- (instancetype)initBrushAlpineViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.indicesMightViewController = viewController;
        [self poolUighurLeftoverOriginStar];
    }
    return self;
}


- (void)poolUighurLeftoverOriginStar {
    
    NSArray *expansionStaySpanNorwegianIcon = [ResultsInfinityFutureFiveZoom descenderSoundNegotiateOddAre:[DuplexHelp class]];
    
    
    NSString *ruleAvailPrimeCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block DuplexHelp *streamSaturate = nil;
    [expansionStaySpanNorwegianIcon enumerateObjectsUsingBlock:^(DuplexHelp *country, NSUInteger idx, BOOL *stop) {
        if ([country.hourExistingCode caseInsensitiveCompare:ruleAvailPrimeCode] == NSOrderedSame) {
            streamSaturate = country;
            *stop = YES; 
        }
    }];
    self.fullOwnPunjabiWinMedium = streamSaturate;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",MouthOunces.logTwelveEnd.sinkArguments, streamSaturate.dirtyListCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *microArmImage = [UIImage exclusionButOnlineTailProposalName:MouthOunces.logTwelveEnd.capMemberCupInvitedGuideOur];
    
    
    CGSize unifiedManySize = CGSizeMake(13, 13); 
    
    
    UIImage *fingerImage = [self syntaxHighHomeImage:microArmImage decayRawSize:unifiedManySize];
    
    
    UIImage *templateImage = [fingerImage 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(otherUnloadClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)syntaxHighHomeImage:(UIImage *)image decayRawSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat busNewtons = targetSize.width / image.size.width;
    CGFloat rollPutAxes = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(busNewtons, rollPutAxes);
    
    
    CGRect resignRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - resignRect.size.width) / 2.0,
                               (targetSize.height - resignRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                resignRect.size.width,
                                resignRect.size.height)];
    
    UIImage *barImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return barImage;
}


- (void)otherUnloadClicked {
    SinGivenLeavePublishLogoMenstrualViewController *arm = [SinGivenLeavePublishLogoMenstrualViewController new];
    arm.dirtyFileDelegate = self;
    [self.indicesMightViewController.navigationController pushViewController:arm animated:NO];
}

- (void)slovenianFlipReasonCalculateFemaleEditKilometerGrandson:(DuplexHelp *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",MouthOunces.logTwelveEnd.sinkArguments, country.dirtyListCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.fullOwnPunjabiWinMedium = country;
}

- (void)dealloc {
    
}
@end
