






#import "ItsTooSubEnterCell.h"
#import "DeltaBeenHitInfo.h"
#import "Masonry.h"
#import "UIColor+BusColor.h"

@implementation ItsTooSubEnterCell

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

- (void)setModel:(DeltaBeenHitInfo *)model
{
    _model = model;
    _sizeCutLabel.text = model.managerThick;
    _sizeCutLabel.font = [UIFont systemFontOfSize:model.leftoverLiterSentenceGigahertzPacketsLaw];
    _sizeCutLabel.textColor = [UIColor cellMildStopControlsDegradedPan:model.armourTrackingMalayalamHebrewPrefixesInsert];
    self.backgroundColor = [[UIColor cellMildStopControlsDegradedPan:model.ellipsisExtensionStarNeverFrameDingbats] colorWithAlphaComponent:model.ropeExtraSixPetabytesMillSlovenian];
    self.layer.cornerRadius = 2;
}

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

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

@end
