






#import "BigAreaPaceHisCell.h"
#import "HourOwnGuestInfo.h"
#import "Masonry.h"
#import "UIColor+RunColor.h"

@implementation BigAreaPaceHisCell

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

- (void)setModel:(HourOwnGuestInfo *)model
{
    _model = model;
    _hitSuchLabel.text = model.aspectHasDid;
    _hitSuchLabel.font = [UIFont systemFontOfSize:model.chargingKitRenewPullMapThousands];
    _hitSuchLabel.textColor = [UIColor millionActiveGainZipBoostReturning:model.bayerPutBypassedProvidedWristSeven];
    self.backgroundColor = [[UIColor millionActiveGainZipBoostReturning:model.mindSleetStayReportedSuspendedDegrees] colorWithAlphaComponent:model.slopeUrgentPaceInstantCardioidSmall];
    self.layer.cornerRadius = 2;
}

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

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

@end
