






#import "SheAreAgeHindiCell.h"
#import "EndSleetSeedInfo.h"
#import "Masonry.h"
#import "UIColor+MidColor.h"

@implementation SheAreAgeHindiCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        self.clipsToBounds = YES;
        
        [self addSubview:self.foldHitLabel];
        
        [self.foldHitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 4, 0, 0));
        }];
        
    }
    return self;
}

- (void)setModel:(EndSleetSeedInfo *)model
{
    _model = model;
    _foldHitLabel.text = model.brushOrigins;
    _foldHitLabel.font = [UIFont systemFontOfSize:model.postalGraphicsAdoptRegionsLacrosseBundle];
    _foldHitLabel.textColor = [UIColor launchingCutoffRenewingDescenderRainResults:model.slabHandlesUserReceivesPublicFirst];
    self.backgroundColor = [[UIColor launchingCutoffRenewingDescenderRainResults:model.componentMapDashPlayingReaderText] colorWithAlphaComponent:model.linkSmartPeopleScrollTalkSolid];
    self.layer.cornerRadius = 2;
}

- (void)redNotHueBridgedItalics:(void(^)(void))animations completion:(void(^)(BOOL))completion {
    EndSleetSeedInfo *info = (EndSleetSeedInfo *)_model;
    if ([info isKindOfClass:[EndSleetSeedInfo class]] && info.failingTotalPromptDestroyContinued > 0) {
        self.transform = CGAffineTransformMakeTranslation(-info.failingTotalPromptDestroyContinued, 0);
    }
    [super redNotHueBridgedItalics:animations completion:completion];
}

- (UILabel *)foldHitLabel {
    if (!_foldHitLabel) {
        _foldHitLabel = [[UILabel alloc] init];
        _foldHitLabel.backgroundColor = [UIColor clearColor];
        _foldHitLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _foldHitLabel;
}

@end
