






#import "SnowShakeOuterCell.h"
#import "DriveSandboxInfo.h"
#import "Masonry.h"
#import "UIColor+RowColor.h"

@implementation SnowShakeOuterCell

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

- (void)setModel:(DriveSandboxInfo *)model
{
    _model = model;
    _samplerLabel.text = model.sheetTempBad;
    _samplerLabel.font = [UIFont systemFontOfSize:model.requireWakePinReadableArmLow];
    _samplerLabel.textColor = [UIColor hailHandStylusKelvinPitchReminder:model.unitEstimateBridgingLeastConnectCount];
    self.backgroundColor = [[UIColor hailHandStylusKelvinPitchReminder:model.editorsForIncludingCampaignCathedralFlush] colorWithAlphaComponent:model.makeBrotherRefinedPhraseAddButton];
    self.layer.cornerRadius = 2;
}

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

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

@end
