






#import "LessItsMileRetCell.h"
#import "CoalescedAskInfo.h"
#import "Masonry.h"
#import "UIColor+OddColor.h"

@implementation LessItsMileRetCell

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

- (void)setModel:(CoalescedAskInfo *)model
{
    _model = model;
    _falloffLabel.text = model.stepLowEmail;
    _falloffLabel.font = [UIFont systemFontOfSize:model.badFootnoteCubeHeadsetExclusionGeometry];
    _falloffLabel.textColor = [UIColor amharicIronEncodeFeetGaspLoose:model.itemStampNapRedefinedEasyFetch];
    self.backgroundColor = [[UIColor amharicIronEncodeFeetGaspLoose:model.enterTiedCampaignSampleSongLiner] colorWithAlphaComponent:model.itemFitHangDuplexMixCritical];
    self.layer.cornerRadius = 2;
}

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

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

@end
