






#import "StepTapZeroSawCell.h"
#import "OutBeatFoundInfo.h"
#import "Masonry.h"
#import "UIColor+NowColor.h"

@implementation StepTapZeroSawCell

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

- (void)setModel:(OutBeatFoundInfo *)model
{
    _model = model;
    _howGrowLabel.text = model.authorMostly;
    _howGrowLabel.font = [UIFont systemFontOfSize:model.factoryNineStateQuarterVortexFlight];
    _howGrowLabel.textColor = [UIColor sequencerFriendLongerHandlesBikeCanceling:model.pipeFeedStopBandSymptomCase];
    self.backgroundColor = [[UIColor sequencerFriendLongerHandlesBikeCanceling:model.declineElapsedObsoleteSixLightPause] colorWithAlphaComponent:model.applyingDueHueWayDryArm];
    self.layer.cornerRadius = 2;
}

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

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

@end
