






#import "TalkItemHisTenCell.h"
#import "ActionUseKeyInfo.h"
#import "Masonry.h"
#import "UIColor+TooColor.h"

@implementation TalkItemHisTenCell

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

- (void)setModel:(ActionUseKeyInfo *)model
{
    _model = model;
    _sayJustLabel.text = model.tagTreeSlant;
    _sayJustLabel.font = [UIFont systemFontOfSize:model.resignVerticalEllipseTheFocalSelect];
    _sayJustLabel.textColor = [UIColor integralYahooEvictionBeatDutchReal:model.howVortexPlanActivatedEnvelopeServices];
    self.backgroundColor = [[UIColor integralYahooEvictionBeatDutchReal:model.buildLongitudeBarDeviceRecordingGrade] colorWithAlphaComponent:model.clampingFingerOurStreamStepsonCellular];
    self.layer.cornerRadius = 2;
}

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

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

@end
