






#import "ModelDueCarDidCell.h"
#import "DailyLargestInfo.h"
#import "Masonry.h"
#import "UIColor+SeeColor.h"

@implementation ModelDueCarDidCell

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

- (void)setModel:(DailyLargestInfo *)model
{
    _model = model;
    _liveIcyLabel.text = model.redTallTitle;
    _liveIcyLabel.font = [UIFont systemFontOfSize:model.exclusionMembersAffectedCompileSmoothedCentrals];
    _liveIcyLabel.textColor = [UIColor boldTeaspoonsKeyCollapseThumbConflict:model.armourEntryIndexOldFirmwareSocial];
    self.backgroundColor = [[UIColor boldTeaspoonsKeyCollapseThumbConflict:model.husbandYouManagedObservedPresenterSense] colorWithAlphaComponent:model.degreeTooEndRaceAmbienceRandom];
    self.layer.cornerRadius = 2;
}

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

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

@end
