






#import "SnowRedDeepSeeCell.h"
#import "UnboundAlertInfo.h"
#import "Masonry.h"
#import "UIColor+SpaColor.h"

@implementation SnowRedDeepSeeCell

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

- (void)setModel:(UnboundAlertInfo *)model
{
    _model = model;
    _sumRedoLabel.text = model.waySeasonCar;
    _sumRedoLabel.font = [UIFont systemFontOfSize:model.youProjectParameterInsertionSharpnessDanish];
    _sumRedoLabel.textColor = [UIColor sheOffsetShowersPenAccuracyDecide:model.ethernetBottomSortAloneInterestZero];
    self.backgroundColor = [[UIColor sheOffsetShowersPenAccuracyDecide:model.invertSilenceAssemblyReferenceExtractSucceeded] colorWithAlphaComponent:model.pathCircleFocusScoreGetBirth];
    self.layer.cornerRadius = 2;
}

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

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

@end
