






#import "DifferentMatchCell.h"
#import "WasTrialIconInfo.h"
#import "Masonry.h"
#import "UIColor+UseColor.h"

@implementation DifferentMatchCell

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

- (void)setModel:(WasTrialIconInfo *)model
{
    _model = model;
    _tagBitsLabel.text = model.putSinHeight;
    _tagBitsLabel.font = [UIFont systemFontOfSize:model.localPressureKilogramsDanishSourceEdit];
    _tagBitsLabel.textColor = [UIColor lockAllocatedLightBitsSoftballTalk:model.auxiliaryAskBayerLowHoldBypass];
    self.backgroundColor = [[UIColor lockAllocatedLightBitsSoftballTalk:model.extraFunnelTwoColleagueDisparityArt] colorWithAlphaComponent:model.denyTemplateFastestOptionalTabNewsstand];
    self.layer.cornerRadius = 2;
}

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

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

@end
