






#import "TapsWayTooSwapCell.h"
#import "NextEligibleInfo.h"
#import "Masonry.h"
#import "UIColor+EarColor.h"

@implementation TapsWayTooSwapCell

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

- (void)setModel:(NextEligibleInfo *)model
{
    _model = model;
    _settingLabel.text = model.headServices;
    _settingLabel.font = [UIFont systemFontOfSize:model.realLogTildeFastBondDisappear];
    _settingLabel.textColor = [UIColor scrollingCardioidBendEndpointCupNot:model.indicatorRecursiveCarriageFitFiveFade];
    self.backgroundColor = [[UIColor scrollingCardioidBendEndpointCupNot:model.revertTwoDegradedCourseStaticWin] colorWithAlphaComponent:model.boldDetailUsedTurkmenLinearZoom];
    self.layer.cornerRadius = 2;
}

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

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

@end
