






#import "PriceRowNowLogCell.h"
#import "SaltBevelEarInfo.h"
#import "Masonry.h"
#import "UIColor+CupColor.h"

@implementation PriceRowNowLogCell

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

- (void)setModel:(SaltBevelEarInfo *)model
{
    _model = model;
    _minUsedLabel.text = model.canStartStep;
    _minUsedLabel.font = [UIFont systemFontOfSize:model.husbandProvidersIntroSchoolInterlaceVerbose];
    _minUsedLabel.textColor = [UIColor filenameMouthSoloistAbsentBrotherLaw:model.streetReferentCellphoneOrnamentsSumProvides];
    self.backgroundColor = [[UIColor filenameMouthSoloistAbsentBrotherLaw:model.areaCarSitePicturePenOptimized] colorWithAlphaComponent:model.towerHangCallExpiredMalformedOff];
    self.layer.cornerRadius = 2;
}

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

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

@end
