






#import "ArmFunHeadRowsCell.h"
#import "HighlightSheInfo.h"
#import "Masonry.h"
#import "UIColor+EggColor.h"

@implementation ArmFunHeadRowsCell

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

- (void)setModel:(HighlightSheInfo *)model
{
    _model = model;
    _offFunkLabel.text = model.guaraniUnion;
    _offFunkLabel.font = [UIFont systemFontOfSize:model.friendSugarTrustedIntegerLeftoverLazy];
    _offFunkLabel.textColor = [UIColor reuseOriginsArgumentsActivityUtteranceGigabytes:model.exactnessRecycleIrishHairCreatingBag];
    self.backgroundColor = [[UIColor reuseOriginsArgumentsActivityUtteranceGigabytes:model.conjugateScanBarrierDogNiacinDingbats] colorWithAlphaComponent:model.beenCountedShareEncipherComputerFiltering];
    self.layer.cornerRadius = 2;
}

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

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

@end
