






#import "DryTenLeftInfoCell.h"
#import "PlanMinYahooInfo.h"
#import "Masonry.h"
#import "UIColor+HerColor.h"

@implementation DryTenLeftInfoCell

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

- (void)setModel:(PlanMinYahooInfo *)model
{
    _model = model;
    _mixDropLabel.text = model.treeHitAbove;
    _mixDropLabel.font = [UIFont systemFontOfSize:model.circleNearestMoireRopeTomorrowPost];
    _mixDropLabel.textColor = [UIColor portalLegalFiveRectifiedAnswerRepeat:model.samplesVortexMusicBackwardBendFifteen];
    self.backgroundColor = [[UIColor portalLegalFiveRectifiedAnswerRepeat:model.priorDesiredMountedSpousesThermalTruncates] colorWithAlphaComponent:model.cautionVisualSucceedRawRouteSelectors];
    self.layer.cornerRadius = 2;
}

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

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

@end
