






#import "FitDueAnyMetalCell.h"
#import "LimitToolOutInfo.h"
#import "Masonry.h"
#import "UIColor+BinColor.h"

@implementation FitDueAnyMetalCell

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

- (void)setModel:(LimitToolOutInfo *)model
{
    _model = model;
    _rateSawLabel.text = model.chatPossible;
    _rateSawLabel.font = [UIFont systemFontOfSize:model.caffeineProtocolsDiscountsMinderAudiencesFeedback];
    _rateSawLabel.textColor = [UIColor aliveGatheringDrainEventReleasePub:model.sayZoneStoppedTruncateTotalEar];
    self.backgroundColor = [[UIColor aliveGatheringDrainEventReleasePub:model.closeVolumesObsoleteFollowRankNewsstand] colorWithAlphaComponent:model.distantObserveEmptyRelevanceLetterCompleted];
    self.layer.cornerRadius = 2;
}

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

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

@end
