






#import "MixerGigahertzCell.h"
#import "SettingsBeatInfo.h"
#import "Masonry.h"
#import "UIColor+TheColor.h"

@implementation MixerGigahertzCell

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

- (void)setModel:(SettingsBeatInfo *)model
{
    _model = model;
    _overageLabel.text = model.rangingFinal;
    _overageLabel.font = [UIFont systemFontOfSize:model.domainMartialIndexesHelperWaterHandball];
    _overageLabel.textColor = [UIColor provideClangAdvanceExpiresTeaspoonsJob:model.allowLongIntervalsRelevanceCopperMay];
    self.backgroundColor = [[UIColor provideClangAdvanceExpiresTeaspoonsJob:model.abnormalEnableKilometerAnyIncludingBest] colorWithAlphaComponent:model.forwardsBusStandardRoundExpectsRatings];
    self.layer.cornerRadius = 2;
}

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

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

@end
