






#import "DidTopHardLookCell.h"
#import "HeadReplyNetInfo.h"
#import "Masonry.h"
#import "UIColor+LogColor.h"

@implementation DidTopHardLookCell

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

- (void)setModel:(HeadReplyNetInfo *)model
{
    _model = model;
    _corruptLabel.text = model.danceNetwork;
    _corruptLabel.font = [UIFont systemFontOfSize:model.wayExitsKindBlueMillNorth];
    _corruptLabel.textColor = [UIColor cutMealIdentifyApertureAssumeNordic:model.actualDismissedNotAccountsDidHas];
    self.backgroundColor = [[UIColor cutMealIdentifyApertureAssumeNordic:model.promisedFaceFaxObservedSoftSob] colorWithAlphaComponent:model.movieCaretFoodNewsstandLeftBag];
    self.layer.cornerRadius = 2;
}

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

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

@end
